mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
unattended-lte-firmware-upgrade: skip interface on missing firmware information
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
:log debug ("Could not get latest LTE firmware version for interface " . $IntName . ".");
|
||||
}
|
||||
|
||||
:if ([ :typeof $Firmware ] = "array") do={
|
||||
:if (($Firmware->"installed") != ($Firmware->"latest")) do={
|
||||
:log info ("Scheduling LTE firmware upgrade for interface " . $IntName . ".");
|
||||
:global LTEFirmwareUpgrade do={
|
||||
@@ -32,4 +33,7 @@
|
||||
} else={
|
||||
:log info ("The LTE firmware is up to date on interface " . $IntName . ".");
|
||||
}
|
||||
} else={
|
||||
:log info ("No LTE firmware information available for interface " . $IntName . ".");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user