Создал(а) 'firmware-auto-update'

This commit is contained in:
Ivor Barhansky 2022-01-28 08:56:32 +00:00
parent fca1f7a8e5
commit 58c5cb11a0

4
firmware-auto-update Normal file
View File

@ -0,0 +1,4 @@
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!"}