diff options
author | Christian Hesse <mail@eworm.de> | 2021-04-27 21:57:25 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-04-28 13:58:37 +0200 |
commit | fbe4c457c6c233e3dbe8e58c2d8d8eead9d9c091 (patch) | |
tree | e75aa62adb25ff15cdf4ea4766756b01d934a4a8 | |
parent | baed8b5cfd7245efef3432182a53c63651aa744a (diff) |
check-lte-firmware-upgrade: pass origin to $SendNotification2
-rw-r--r-- | check-lte-firmware-upgrade | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/check-lte-firmware-upgrade b/check-lte-firmware-upgrade index 6b46502..c05c436 100644 --- a/check-lte-firmware-upgrade +++ b/check-lte-firmware-upgrade @@ -29,7 +29,8 @@ } else={ :if (($Firmware->"installed") != ($Firmware->"latest")) do={ :local Info [ / interface lte info $Interface once as-value ]; - $SendNotification2 ({ subject=([ $SymbolForNotification "sparkles" ] . "LTE firmware upgrade"); \ + $SendNotification2 ({ origin=$0; \ + 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" . \ |