Glam Prestige Journal

Bright entertainment trends with youth appeal.

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?

1

5 Answers

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.

1

[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 root@192.168.1.1 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.

On Linux use cron to schedule reboot, and windows use Windows-Scheduler to execute command using putty.

1

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
2

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.

3

There are low tech solutions also. You can use a light timer such as this. They also make digital ones that are more customizable.

FYI - taken from my answer to

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy