john9527
Part of the Furniture
IIRC you need to quote the restart_wan parameter....so if it doesn't work as is, trycru a RestartWan "45 09 * * * service restart_wan 0"
cru a RestartWan "45 09 * * * service \"restart_wan 0\""
IIRC you need to quote the restart_wan parameter....so if it doesn't work as is, trycru a RestartWan "45 09 * * * service restart_wan 0"
ced@RT-AC66U_B1-F600:/jffs/scripts# ls -l init-start
-rwxr-xr-x 1 ced root 63 Jan 12 18:03 init-start
IIRC you need to quote the restart_wan parameter....so if it doesn't work as is, try
cru a RestartWan "45 09 * * * service \"restart_wan 0\""
service restart_wan 0
service restart_wan
ced@RT-AC66U_B1-F600:/tmp/home/root# service restart_wan 0
Usage: service <action_service>
ced@RT-AC66U_B1-F600:/tmp/home/root# service restart_wan
Done.
That's because as noted above you need to use quotes if the service command has more than one parameter. But as I mentioned restart_wan doesn't have any parameters because it restarts all WAN interfaces, whereas restart_wan_if does need the interface number as a parameter.service restart_wan 0 returned me an error (sort of) :
service restart_wan
service "restart_wan_if 0"
#!/bin/sh
cru a RestartWan "45 09 * * * service restart_wan"
So that will be the option I told you to enable in post #20.Edit : Arf, in http://192.168.1.1/Advanced_System_Content.asp there is an option to enable the use of scripts : "Enable JFFS custom scripts and configs"
I enabled it to see if it change something
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!