aboutsummaryrefslogtreecommitdiffstats
path: root/check-lte-firmware-upgrade
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-10-13 13:23:32 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-10-13 13:23:32 +0200
commite11e6b465812863fd2049274fd199f6dfa93c1a4 (patch)
tree4713b5026080fc06a99f85a2e00e034972f634c1 /check-lte-firmware-upgrade
parent3e0039c2666ae4cf2d45284e7a583f4ea2a0a85c (diff)
check-lte-firmware-upgrade: show manufacturer & model
Diffstat (limited to 'check-lte-firmware-upgrade')
-rw-r--r--check-lte-firmware-upgrade3
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");