mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-26 05:44:39 +02:00
check-lte-firmware-upgrade: use $LogPrintExit
This commit is contained in:
parent
d2b1f036ca
commit
ee903e263f
1 changed files with 5 additions and 4 deletions
|
@ -8,6 +8,7 @@
|
||||||
:global Identity;
|
:global Identity;
|
||||||
:global SentLteFirmwareUpgradeNotification;
|
:global SentLteFirmwareUpgradeNotification;
|
||||||
|
|
||||||
|
:global LogPrintExit;
|
||||||
:global SendNotification;
|
:global SendNotification;
|
||||||
|
|
||||||
:foreach Interface in=[ / interface lte find ] do={
|
:foreach Interface in=[ / interface lte find ] do={
|
||||||
|
@ -16,8 +17,8 @@
|
||||||
:local Firmware [ / interface lte firmware-upgrade $Interface once as-value ];
|
:local Firmware [ / interface lte firmware-upgrade $Interface once as-value ];
|
||||||
|
|
||||||
:if ($SentLteFirmwareUpgradeNotification = ($Firmware->"latest")) do={
|
:if ($SentLteFirmwareUpgradeNotification = ($Firmware->"latest")) do={
|
||||||
:log debug ("Already sent the LTE firmware upgrade notification for version " . \
|
$LogPrintExit debug ("Already sent the LTE firmware upgrade notification for version " . \
|
||||||
($Firmware->"latest") . ".");
|
($Firmware->"latest") . ".") false;
|
||||||
} else={
|
} else={
|
||||||
:if (($Firmware->"installed") != ($Firmware->"latest")) do={
|
:if (($Firmware->"installed") != ($Firmware->"latest")) do={
|
||||||
$SendNotification ("LTE firmware upgrade") \
|
$SendNotification ("LTE firmware upgrade") \
|
||||||
|
@ -27,7 +28,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} on-error={
|
} on-error={
|
||||||
:log debug ("Could not get latest LTE firmware version for interface " . \
|
$LogPrintExit debug ("Could not get latest LTE firmware version for interface " . \
|
||||||
$IntName . ".");
|
$IntName . ".") false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue