Skip to content

Instantly share code, notes, and snippets.

@kinwahlai
Created January 30, 2022 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kinwahlai/4cc93f7abf5204d6f29d5fc015d3d592 to your computer and use it in GitHub Desktop.
Save kinwahlai/4cc93f7abf5204d6f29d5fc015d3d592 to your computer and use it in GitHub Desktop.
scheduled task to restart OpenWRT router
# Reboot at 4:30am every day
# Note: To avoid infinite reboot loop, wait 70 seconds
# and touch a file in /etc so clock will be set
# properly to 4:31 on reboot before cron starts.
30 4 * * * sleep 70 && touch /etc/banner && reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment