Yes, I know there are other posts on this, but I don't solve my problem.
I need to automatically turn wifi on and off at night. Also, I want to restart the router daily between wifi off and on activity. I think of using a command like this:
Any command to reboot every day without continuously rebooting? Yes, there seems to be a space around each bar, but I don't know why I needed to make a factory default.
You need to sleep at least 1 minute before rebooting otherwise the reboot job will execute immediately again after reboot because the clock is restored to the same minute.
No, your router will continuously reboot; and you already know this. Where are your touch and sleep commands?
Plesse re-read Post No. 2 and Post No. 6. Feel free to ask more questions if you are still not clear on why your reboot cron command needs to be fixed.
Sorry but I'm not very practical for this type of settings. I know that a few months ago I had entered a command that worked without going into continuous reboot. I tried Watchcat and it's a half solution. The problem with watchcat is that if I want to do a daily reboot (therefore reboot every 24h) for example 3 AM I have to give the command at the same time but I am sleeping at that time. So without lengthening the discussion too much I ask: Since as I said above I had a simple command very similar or perhaps identical to: 50 05 * * * / sbin / reboot and it worked for at least a month then for some reason it stopped working, my question is: Is it possible to set the command that at a certain hour of 24 hours the router will restart itself yes or no? From what I read it seems to me not. If, on the other hand, it is possible to ask if you indicate the full command to put. Isn't it appropriate to implement a clock inside the firmware? Thank you.
Yes. As per the many answers above.
What aren't you understanding?
I'll link it for the third time:
The bit that everyone is trying to tell you is that "reboot" is not enough. As per the article, you need to also sleep first so that you don't end up in an infinite reboot loop. sleep 70 && touch /etc/banner && reboot
And not to confuse you further, but have you considered that when you reboot your wifi will turn back on with your current method?
Well guy, seem to work! The correct format i used is :
mm hh * * Sat,Sun /usr/bin/wifi_schedule.sh forcestop
mm hh * * Mon,Tue,Wed,Thu,Fri /usr/bin/wifi_schedule.sh start
mm hh * * Sat,Sun /usr/bin/wifi_schedule.sh start
mm hh * * Mon,Tue,Wed,Thu,Fri /usr/bin/wifi_schedule.sh forcestop
mm hh * * * sleep 70 && touch /etc/banner && reboot
This configuration permit me to have different wifi scheduling between workday and weekend and furthermore reboot daily!. I therefore believe that manually entering these parameters on system / scheduled task the installation of wifischedule app is useless. Can you confirm it? Thank you all.