脚本-自动更新RouterOS系统
温馨提示:这篇文章已发布于2025-07-04 11:35:20,请注意相关的内容是否还可用!
将以下脚本添加到 scheduler 进行定期执行,2个脚本任一个都行。
脚本1
: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.”;}
脚本2
system package update install
版权声明:文章除非注明天云网原创,否则均为转载,如有侵权请联系我们删除!


