mikrotik/firmware-auto-update

4 lines
295 B
Plaintext
Raw Normal View History

if ([system routerboard settings get auto-upgrade] = true) do={ \
if ([system routerboard get current-firmware] != [system routerboard get upgrade-firmware]) do={system reboot} \
else={log info "Firmware up to date."} \
} else={log warning "Firmware auto-update: Disabled. Need manual upgrade!"}