DD-WRT scheduled reboot (with cron fallback)

DD-WRT scheduled reboot (with cron fallback)

If your DD-WRT router occasionally struggles or stops working properly (usually after being on for a while), try scheduling a reboot. It should help clear the memory and keep everything running smoothly (in my experience).

First, try the built in method

  1. Login to your DD-WRT router's web interface, usually at 192.168.0.1 or 192.168.1.1
  2. Navigate to:
  • Administration
  • Keep Alive
  1. Switch on Scheduled Reboot
  2. Set it to reboot as often as you like at a time when you're unlikely to miss the Internet for a few minutes (e.g. daily at 3AM)
No alt text provided for this image


  1. Click Apply Settings
  2. Navigate to:
  • Administration
  • Management
  1. Reboot Router at the bottom of the page

Is it working?

There are two ways to check. Either wait until tomorrow, login and check the uptime (top right corner) to see if it's the right number of hours after your rooter rebooted this morning.

Or...set the scheduled reboot to a time that's about 10 minutes in the future from when you set it. Reboot and watch your WiFi. Very soon it should disconnect while your router reboots so you know it's working (you can check the uptime when it's back).

If that doesn't work, get scripting

Here's the punchline. That doesn't work for me :-( Scheduled reboot is...scheduled. But my router never reboots. If the same happens to you, try this:

  1. Disable the built in Scheduled Reboot if you enabled it (e.g. above)
  2. Navigate to:
  • Administration
  • Commands
  1. Copy and paste the following code into the big text box:

4. echo "#!/bin/sh" > /tmp/restart_router

5. echo "startservice run_rc_shutdown; /sbin/reboot" >> /tmp/restart_router

6. chmod a+x /tmp/restart_router

7. echo "0 3 * * * root /tmp/restart_router" > /tmp/cron.d/restartrouter

It'll look like this:

No alt text provided for this image
  1. Click Save Startup, now it'll look like this:
No alt text provided for this image
  1. Navigate to:
  • Administration
  • Management
  1. Reboot Router at the bottom of the page

What this does

The script will, every time your DD-WRT router boots, create a shell script that reboots your router. It modifies that script's permissions to make it executable. Then it creates a cron job to run that script at 3AM every day.

If 3AM every day isn't right for you, adjust the 0 3 * * * portion to suit your needs.

Same as above, you can either check it works by checking the next day to see if your uptime's right; or you can set it to a shorter time in the future and check then.


To view or add a comment, sign in

Insights from the community

Others also viewed

Explore topics