negan07 / ancistrus

Netgear's D7000 Nighthawk Router Experience Distributed Project
https://negan07.github.io/ancistrus/
GNU General Public License v2.0
66 stars 17 forks source link

Reboot schedule #55

Closed Cams77 closed 4 years ago

Cams77 commented 5 years ago

Hi, what commands should i insert in crontab to reboot router at specific time? I tried with 2 different commands but none works on this router while on another openwrt router does. First one is: 30 4 root shutdown -r now Second one is: 30 4 sleep 70 && touch /etc/banner && reboot Thanks for support. P.S: using latest firmware my bufferbloat is 1ms both as vdsl modem and router only (other bridge modem)!!! Great work!!! Thanks.

Cams77 commented 5 years ago

Solved: added cronjob using ANCISTRUS/CORE SETUP/SCHEDULE EVENTS 30 4 * root reboot which works fine.

NOTES: Using telnet i found out that shutdown command is not installed/recognised while reboot command is. I have also tried without success 30 4 * root sleep 70 && touch /tmp/etc/version && reboot even though sleep, touch and reboot commands are working fine.

negan07 commented 4 years ago

shutdown is not included into compiled bb (usually not needed)