Code: Select all
/system package update
check-for-updates once
:delay 1s;
:if ( [get status] = "New version is available") do={ install }
and I've also set autoupgrade
Code: Select all
/system routerboard settings
set auto-upgrade=yes
but it needs a further reboot for the new firmware to become the current one.
Can this be done automatically? Maybe creating a flag after a successful update, which triggers the reboot, or creating a script like the first one which checks if the current and upgrade firmware are not the same..