FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14152 questions

16804 answers

27631 comments

54049 members

0 votes
282 views 2 comments
by
Hi,

TRB140 with existing scheduled-restart rules for the modem and device reboot.

Is it possible to change the existing rules from CLI and is there an example of the commands to use?

Many thanks in advance.
by
I discovered this can be done from CLI using crontab -l (list) and crontab -e (edit)

1 Answer

+1 vote
by

Hi,

As @TRIGGERACTIVE said, existing rules could be changed using crontab -l and crontab -e.

Also, you should be able to edit the crontab values by editing the actual periodic reboot configuration file.

Just use vi command to edit /etc/config/periodic_reboot

https://openwrt.org/docs/guide-user/base-system/user.beginner.cli#editing_files

After you've done with the editing, execute /etc/init.d/periodic_reboot restart

And that's it, your crontab values and WebUI values will change according to the changes made in the configuration file.

EB.

by

Thanks. 

I learnt that editing /etc/config/periodic_reboot and then executing /etc/init.d/periodic_reboot restart is necessary to ensure the crontab rules do persist across device reboots.