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 5 * * * reboot 

Now reboot the cron service

/etc/init.d/cron restart
It will reboot the router everyday at 05:00 AM

 

 

No comments:

Post a Comment

Be the first to comment on this post.