将以下脚本添加到 scheduler 进行定期执行,2个脚本任一个都行。
:log info “Checking firmware…”;
/system package update check-for-updates
:delay 10s;
:if ([/system package update get status]=”New version is available”) \
do={\
:log info “Downloading firmware”;
/system package update download
:delay 600s;
:if ([/system package update get status]=”Downloaded, please reboot router to upgrade it”) \
do={:log info “Download finish, Rebooting”;
/system reboot} \
else={:log info “Download package fail”}} \
else={:log info “No update.”;}
system package update install
2023-12-13T11:46:19
2023-12-13T11:48:22
2024-01-02T09:07:42
2024-01-02T09:07:20
2024-01-02T09:06:50
2024-01-02T09:06:26
2024-01-02T09:06:01
2024-01-02T09:05:20
2024-01-02T09:04:49
2024-01-02T09:04:17