diff options
author | Christian Hesse <mail@eworm.de> | 2024-06-11 21:12:46 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-06-11 21:14:05 +0200 |
commit | d01362dbaa352efccf4d64a5e0404b2d43060cd5 (patch) | |
tree | fc4d9889d93f5e430856f8518248fad2caa8e101 /unattended-lte-firmware-upgrade.rsc | |
parent | 1e1c9be94522a6dfe24440321950c3dd0b2256a8 (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.rsc | 3 |
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={ |