aboutsummaryrefslogtreecommitdiffstats
path: root/unattended-lte-firmware-upgrade.rsc
diff options
context:
space:
mode:
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={