From e11e6b465812863fd2049274fd199f6dfa93c1a4 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 13 Oct 2020 13:23:32 +0200 Subject: check-lte-firmware-upgrade: show manufacturer & model --- check-lte-firmware-upgrade | 3 +++ 1 file changed, 3 insertions(+) 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"); -- cgit v1.2.3-70-g09d2