diff options
author | Christian Hesse <mail@eworm.de> | 2021-04-27 20:56:20 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-04-28 13:58:37 +0200 |
commit | 4fe11fadee928b40ea7d9a6f10fdfea9a49095ea (patch) | |
tree | 37bd62cebf7b93cd929205aa00b6fac70e215a12 | |
parent | bf315c15f64d677ee879a6225d5985f6b8e25610 (diff) |
check-lte-firmware-upgrade: use $SendNotification2
-rw-r--r-- | check-lte-firmware-upgrade | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/check-lte-firmware-upgrade b/check-lte-firmware-upgrade index f55ec5f..6b46502 100644 --- a/check-lte-firmware-upgrade +++ b/check-lte-firmware-upgrade @@ -15,7 +15,7 @@ :global CharacterReplace; :global LogPrintExit2; -:global SendNotification; +:global SendNotification2; :global SymbolForNotification; :foreach Interface in=[ / interface lte find ] do={ @@ -29,12 +29,12 @@ } 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"; + $SendNotification2 ({ subject=([ $SymbolForNotification "sparkles" ] . "LTE firmware upgrade"); \ + message=("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")); silent=true }); :set SentLteFirmwareUpgradeNotification ($Firmware->"latest"); } } |