I have a Linksys Router with dd-wrt installed on. Due to some problems, I would like to periodically reboot the router (let's say at 0:00 everyday). How would I do that?
feedback
|
migrated from serverfault.com Oct 19 '11 at 21:52
This question came from our site for system administrators and desktop support professionals.
|
dd-wrt has a scheduled reboot feature built into the firmware. Have a look at Administration >> Keep Alive >> Scheduled Reboot. Make sure cron is turned on at Administration >> Management >> Cron. | |||
|
feedback
|
|
[if scheduled reboot does not work] If you have enabled ssh-server on (I don't use dd-wrt, not sure if its enabled by default), you can reboot using following command
You can look at this page to configure SSH public-private keys, so that you don't have to login everytime. And remember you should be running ssh-agent/putty-agent whereever your login from. http://www.dd-wrt.com/wiki/index.php/Telnet/SSH_and_the_Command_Line#SSH On Linux use cron to schedule reboot, and windows use Windows-Scheduler to execute command using putty. | |||
feedback
|
|
I have a Linksys WRT-54GL running DD-WRT and have the same requirement. I've found that the scheduled reboot doesn't work so put a timer on the power outlet. Get a digital one so you can set the downtime to be 1 minute at midnight and you have a scheduled reboot. | |||||||
feedback
|
|
You will have to create a cronjob for this. Log on with Create a crontab by running:
Commit the changes so they're still there after the first boot:
| |||
|
feedback
|