Skip to content

Instantly share code, notes, and snippets.

@kaihendry
Last active June 26, 2022 20:21
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaihendry/59a656c3883450d2df2fd52574f43b4c to your computer and use it in GitHub Desktop.
Save kaihendry/59a656c3883450d2df2fd52574f43b4c to your computer and use it in GitHub Desktop.
/system scheduler
add interval=1w name="Upgrade Router Weekly and Reboot" on-event=\
"/system package update check-for-updates; /system package update download; /system reboot;" policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=jan/01/2018 start-time=03:00:00
@kaihendry
Copy link
Author

Mine will reboot regardless, this appears to only reboot if there is an update! https://gist.github.com/tagno25/b207786b02b89700860028e4e2470d14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment