Periodically reboot dd-wrt

Solution 1:

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.

Solution 2:

[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

ssh [email protected] reboot

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.

Solution 3:

You will have to create a cronjob for this.

Log on with ssh or telnet

Create a crontab by running:

# nvram set cron_jobs="00 00 * * * root reboot"

Commit the changes so they're still there after the first boot:

# nvram commit

Solution 4:

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.