From 58c5cb11a097d675c1082b0050edb6f0b67751f8 Mon Sep 17 00:00:00 2001 From: Ivor Barhansky Date: Fri, 28 Jan 2022 08:56:32 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB(=D0=B0)=20?= =?UTF-8?q?'firmware-auto-update'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- firmware-auto-update | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 firmware-auto-update diff --git a/firmware-auto-update b/firmware-auto-update new file mode 100644 index 0000000..aec2f85 --- /dev/null +++ b/firmware-auto-update @@ -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!"} \ No newline at end of file