mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-14 03:54:28 +02:00
check-lte-firmware-upgrade: show manufacturer & model
This commit is contained in:
parent
3e0039c266
commit
e11e6b4658
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
:global Identity;
|
||||
:global SentLteFirmwareUpgradeNotification;
|
||||
|
||||
:global CharacterReplace;
|
||||
:global LogPrintExit;
|
||||
:global SendNotification;
|
||||
:global SymbolForNotification;
|
||||
|
@ -23,9 +24,11 @@
|
|||
($Firmware->"latest") . ".") false;
|
||||
} else={
|
||||
:if (($Firmware->"installed") != ($Firmware->"latest")) do={
|
||||
:local Info [ / interface lte info $Interface once as-value ];
|
||||
$SendNotification ([ $SymbolForNotification "sparkles" ] . "LTE firmware upgrade") \
|
||||
("A new firmware version " . ($Firmware->"latest") . " is available for " . \
|
||||
"LTE interface " . $IntName . " on " . $Identity . ".\n\n" . \
|
||||
"Interface: " . [ $CharacterReplace ($Info->"manufacturer" . " " . $Info->"model") ("\"") "" ] . "\n" . \
|
||||
"Installed: " . ($Firmware->"installed") . "\n" . \
|
||||
"Available: " . ($Firmware->"latest")) "" "true";
|
||||
:set SentLteFirmwareUpgradeNotification ($Firmware->"latest");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue