diff options
-rw-r--r-- | check-lte-firmware-upgrade | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/check-lte-firmware-upgrade b/check-lte-firmware-upgrade index d31ed37..0e4cb3d 100644 --- a/check-lte-firmware-upgrade +++ b/check-lte-firmware-upgrade @@ -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"); |