Try this instead:it didnt worked
JFFS enabled
custom script enabled
init-start file created with
#!/bin/sh
cru a ScheduledReboot "0 4 * * * /sbin/reboot"
added in /jffs/scripts/
chmod 0755 for the file only
and router manual restarted
Actually, here's an easy way for you to create that schedule.
1) Enable JFFS + Format JFFS + Telnet on the Administration -> System page, then reboot.
2) Download the software called Putty (should be easy to find on Google)
3) Using Putty, connect using the Telnet protocol to your router's IP (probably 192.168.1.1) Username and password are the same as for the webui.
4) Type the following, one line at a time:
Code:cat << EOF > /jffs/scripts/services-start #!/bin/sh /usr/sbin/cru a ScheduledReboot "0 6 * * * reboot" EOF
Set 0 (minutes) and 6 (hour) to the desired reboot time, for a daily reboot. Those arguments are:
"min hour day month week command"
After this you will be back to the prompt. Now run this:
Code:chmod a+rx /jffs/scripts/services-start /jffs/scripts/services-start
That will set up the cron job. Every time you reboot the router, the reboot task will be re-established.
To remove the task:
Code:rm /jffs/scripts/services-start cru d ScheduledReboot
admin@RT-N66U-6AC0:/tmp/home/root# cru l
admin@RT-N66U-6AC0:/tmp/home/root# cat /jffs/scripts/services-start
/usr/sbin/cru a ScheduledReboot "0 4 * * * reboot"
admin@RT-N66U-6AC0:/tmp/home/root# ls -l /jffs/scripts
-rwxrwxrwx 1 admin root 51 Jun 7 11:15 services-start
Hi I followed the above, but the cron job doesn't seem to be saved. I can see the script is still there.
Code:admin@RT-N66U-6AC0:/tmp/home/root# cru l admin@RT-N66U-6AC0:/tmp/home/root# cat /jffs/scripts/services-start /usr/sbin/cru a ScheduledReboot "0 4 * * * reboot" admin@RT-N66U-6AC0:/tmp/home/root# ls -l /jffs/scripts -rwxrwxrwx 1 admin root 51 Jun 7 11:15 services-start
I'm using "[Fork] Update for 374.43 available" by john9527.
Does this only work with Merlin's firmware?
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!