PDA

View Full Version : restart network



mickbrush
17-10-10, 12:40
Is there a way to restart the network on the VIX image at a set time each day. I have a problem where after an epg update which is set for 0300 my wirless network does not work after this untill it is manualy restarted.

grtmoby
17-10-10, 12:46
think possible to have a script to do this

mickbrush
17-10-10, 13:24
thats what i thought I think I had a similar problem with my dm 800 and added a line in the cron but cant remember what it was.

mickbrush
17-10-10, 13:59
I cant find the bloody cron now lol

Messi
18-10-10, 15:25
Hi
Here a example restart network every 5 minutes, change the value for your wish

[create file]
restartnetwork.sh

#!/bin/sh
/etc/init.d/networking restart

[FTP send file]
/usr/script/restartnetwork.sh CHMOD755

[Telnet]

echo "*/5 * * * * root /usr/script/restartnetwork.sh" >> /etc/cron/crontabs/root

Work with image that I using for moment, Not tested with Vix image but should works