mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
check-lte-firmware-upgrade: add symbol in notification
This commit is contained in:
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
:global LogPrintExit;
|
:global LogPrintExit;
|
||||||
:global SendNotification;
|
:global SendNotification;
|
||||||
|
:global SymbolForNotification;
|
||||||
|
|
||||||
:foreach Interface in=[ / interface lte find ] do={
|
:foreach Interface in=[ / interface lte find ] do={
|
||||||
:local IntName [ / interface lte get $Interface name ];
|
:local IntName [ / interface lte get $Interface name ];
|
||||||
@ -22,7 +23,7 @@
|
|||||||
($Firmware->"latest") . ".") false;
|
($Firmware->"latest") . ".") false;
|
||||||
} else={
|
} else={
|
||||||
:if (($Firmware->"installed") != ($Firmware->"latest")) do={
|
:if (($Firmware->"installed") != ($Firmware->"latest")) do={
|
||||||
$SendNotification ("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" . \
|
||||||
"Installed: " . ($Firmware->"installed") . "\n" . \
|
"Installed: " . ($Firmware->"installed") . "\n" . \
|
||||||
|
Reference in New Issue
Block a user