mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
check-lte-firmware-upgrade: show manufacturer & model
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
:global Identity;
|
:global Identity;
|
||||||
:global SentLteFirmwareUpgradeNotification;
|
:global SentLteFirmwareUpgradeNotification;
|
||||||
|
|
||||||
|
:global CharacterReplace;
|
||||||
:global LogPrintExit;
|
:global LogPrintExit;
|
||||||
:global SendNotification;
|
:global SendNotification;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
@@ -23,9 +24,11 @@
|
|||||||
($Firmware->"latest") . ".") false;
|
($Firmware->"latest") . ".") false;
|
||||||
} else={
|
} else={
|
||||||
:if (($Firmware->"installed") != ($Firmware->"latest")) do={
|
:if (($Firmware->"installed") != ($Firmware->"latest")) do={
|
||||||
|
:local Info [ / interface lte info $Interface once as-value ];
|
||||||
$SendNotification ([ $SymbolForNotification "sparkles" ] . "LTE firmware upgrade") \
|
$SendNotification ([ $SymbolForNotification "sparkles" ] . "LTE firmware upgrade") \
|
||||||
("A new firmware version " . ($Firmware->"latest") . " is available for " . \
|
("A new firmware version " . ($Firmware->"latest") . " is available for " . \
|
||||||
"LTE interface " . $IntName . " on " . $Identity . ".\n\n" . \
|
"LTE interface " . $IntName . " on " . $Identity . ".\n\n" . \
|
||||||
|
"Interface: " . [ $CharacterReplace ($Info->"manufacturer" . " " . $Info->"model") ("\"") "" ] . "\n" . \
|
||||||
"Installed: " . ($Firmware->"installed") . "\n" . \
|
"Installed: " . ($Firmware->"installed") . "\n" . \
|
||||||
"Available: " . ($Firmware->"latest")) "" "true";
|
"Available: " . ($Firmware->"latest")) "" "true";
|
||||||
:set SentLteFirmwareUpgradeNotification ($Firmware->"latest");
|
:set SentLteFirmwareUpgradeNotification ($Firmware->"latest");
|
||||||
|
Reference in New Issue
Block a user