diff options
author | Christian Hesse <mail@eworm.de> | 2020-09-18 13:11:33 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-09-18 13:11:33 +0200 |
commit | 956244d53b19ecd1c7e1d54ac4b9350db83cff12 (patch) | |
tree | 63ab418488a0db0136f11f7bda1b35c865bc4e89 /collect-wireless-mac.local | |
parent | 1367a59c27706c4a2e47f0f3536ef851031468e7 (diff) |
collect-wireless-mac: add symbol in notification
Diffstat (limited to 'collect-wireless-mac.local')
-rw-r--r-- | collect-wireless-mac.local | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/collect-wireless-mac.local b/collect-wireless-mac.local index d6be32d..080d036 100644 --- a/collect-wireless-mac.local +++ b/collect-wireless-mac.local @@ -14,6 +14,7 @@ :global LogPrintExit; :global ScriptLock; :global SendNotification; +:global SymbolForNotification; $ScriptLock "collect-wireless-mac.local"; @@ -51,7 +52,7 @@ $ScriptLock "collect-wireless-mac.local"; "first seen on " . $DateTime . " connected to SSID " . $Ssid . ", interface " . $Interface); $LogPrintExit info $Message false; / interface wireless access-list add place-before=$PlaceBefore comment=$Message mac-address=$Mac disabled=yes; - $SendNotification ($Mac . " connected to " . $Ssid) \ + $SendNotification ([ $SymbolForNotification "mobile-phone" ] . $Mac . " connected to " . $Ssid) \ ("A device with unknown MAC address connected to " . $Ssid . " on " . $Identity . ".\n\n" . \ "Controller: " . $Identity . "\n" . \ "Interface: " . $Interface . "\n" . \ |