aboutsummaryrefslogtreecommitdiffstats
path: root/unattended-lte-firmware-upgrade.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-06-11 21:12:46 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-06-11 21:14:05 +0200
commitd01362dbaa352efccf4d64a5e0404b2d43060cd5 (patch)
treefc4d9889d93f5e430856f8518248fad2caa8e101 /unattended-lte-firmware-upgrade.rsc
parent1e1c9be94522a6dfe24440321950c3dd0b2256a8 (diff)
unattended-lte-firmware-upgrade: check on valid version first
Diffstat (limited to 'unattended-lte-firmware-upgrade.rsc')
-rw-r--r--unattended-lte-firmware-upgrade.rsc3
1 files changed, 2 insertions, 1 deletions
diff --git a/unattended-lte-firmware-upgrade.rsc b/unattended-lte-firmware-upgrade.rsc
index a8182e5..7ce4028 100644
--- a/unattended-lte-firmware-upgrade.rsc
+++ b/unattended-lte-firmware-upgrade.rsc
@@ -29,7 +29,8 @@
:log info ("LTE firmware upgrade on '" . $1 . "' finished, waiting for reset.");
:delay 240s;
:local Firmware [ /interface/lte/firmware-upgrade $1 as-value ];
- :if (($Firmware->"installed") != ($Firmware->"latest")) do={
+ :if ([ :len ($Firmware->"latest") ] > 0 && \
+ ($Firmware->"installed") != ($Firmware->"latest")) do={
:log warning ("LTE firmware versions still differ. Upgrade failed anyway?");
}
} on-error={