🔥 Holiday Sale! 25% Off Platinum Membership and up to 50% Off on Deployarr (ends December 31).

Asus Wireless N and AC router automatic reboot setup

Setting up wireless router automatic reboot can sometimes keep your network fresh and active. Generally having to reboot a router indicates a problem that may need to be fixed. But cost of repair or replacement may limit what options are available to us. A simple router reboot can solve many issues (at least temporarily) and bring your network up to its full speed. Manually rebooting your router every now and then can be a chore and making your router auto reboot can save time. In this post, I am going to show you Asus wireless N and AC router automatic reboot setup. [Read: How to setup port forwarding on a router?]

Router Automatic Reboot

I recently upgraded my wireless router to the new ASUS RT-AC68U to support wireless AC card on my new laptop and the Raw Mini HTPC that I am testing. I am exploring all possible ways to use this router (more guides to come on this) and one of the things was how to setup automatic router scheduled reboot.

Requirements to Auto Reboot Router

There are few requirements for the method described here to work. Make sure that you satisfy all of them before proceeding.

  • Models: RT-N16, RT-N66U, RT-AC56, RT-AC66U, RT-AC68U, RT-AC87U, and other similar models that run Asus-WRT (including Merlin's builds)
  • SSH access enabled
  • JFFS partition enabled

If you do not have JFFS and SSH enabled yet, then open the wifi router control page, 192.168.1.1 from within your network, and go to Administration -> System. Check appropriate boxes to enable JFFS, custom scripts, and SSH, as shown below.

Enable Jffs And Ssh On Asus-Wrt
Enable Jffs And Ssh On Asus-Wrt

Reboot your router to apply the changes. You should now have an active JFFS partition and SSH server that is ready to accept remote connections.

Asus Ac68UASUS (RT-AC68U) Wireless-AC1900 Dual-Band Gigabit Router Asus Ac68U ReviewsFind out why it is rated the best wireless router in its class.

Enable Wifi Router Automatic Reboot

To setup router automatic reboot, login into your router using SSH. On Windows, you may install PuTTY in case you don't have an SSH client. On Mac or Linux you just open terminal and type in:

ssh [email protected]

Of course, replace USERNAME with your router login username. Once you are in, navigate to /jffs/scripts folder:

cd /jffs/scripts

Finally, to enable router scheduled reboot, create a file called init-start:

vi init-start

Press a to enable file modification and copy or add the following content to the file (replace USERNAME with your router login username):

#!/bin/sh
cru a ScheduledReboot "0 2 * * * /sbin/reboot"

Pres Esc, wq, and Return in sequence to save and exit from vi editor. The content within the double quotes is the actual cron command that makes the wifi router reboot. The syntax for for the command is shown in the picture below. In the above example, the router automatic reboot will happen at 2 am everyday. [Read: Easily create cron job with Webmin on Linux]

Cron Syntax
Cron Syntax

Using the cron syntax above, customize your cron command timings. Then save the file and exit (Esc, wq, and Return). Lastly, ensure that all your custom scripts are executable using the following command.

chmod a+rx /jffs/scripts/*

Reboot your wireless router manually for one last time for the cron command to register. That is it. You have now setup Asus router automatic reboot.

Be the 1 in 200,000. Help us sustain what we do.
125 / 150 by Dec 31, 2024
You will gain benefits such as Deployarr access, discord roles, exclusive content, ad-free browsing, and more.
🔥 Holiday Sale! 25% Off Platinum Membership $399.99 $299.99 (ends December 31).
Join the Geek Army (starting from just $1.67/month)

Anand

Anand is a self-learned computer enthusiast, hopeless tinkerer (if it ain't broke, fix it), a part-time blogger, and a Scientist during the day. He has been blogging since 2010 on Linux, Ubuntu, Home/Media/File Servers, Smart Home Automation, and related HOW-TOs.

Holiday Sale