May 9, 2022

Restart Openwrt router periodically at specific time

SSH to the Openwrt router

Enter following command to edit the CRON job

crontab -e

Add the following line there and save the file(press ESCAPE and then :wq).

0 8,20 * * * sleep 70 && touch /etc/banner && reboot 

Now reboot the cron service

/etc/init.d/cron restart
This will reboot the router everyday at 08:00 AM and 08:00 PM



No comments:

Post a Comment

Be the first to comment on this post.