aboutsummaryrefslogtreecommitdiffstats
path: root/collect-wireless-mac.template
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-09-18 13:11:33 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-09-18 13:11:33 +0200
commit956244d53b19ecd1c7e1d54ac4b9350db83cff12 (patch)
tree63ab418488a0db0136f11f7bda1b35c865bc4e89 /collect-wireless-mac.template
parent1367a59c27706c4a2e47f0f3536ef851031468e7 (diff)
collect-wireless-mac: add symbol in notification
Diffstat (limited to 'collect-wireless-mac.template')
-rw-r--r--collect-wireless-mac.template3
1 files changed, 2 insertions, 1 deletions
diff --git a/collect-wireless-mac.template b/collect-wireless-mac.template
index 18d4185..a7e2b4a 100644
--- a/collect-wireless-mac.template
+++ b/collect-wireless-mac.template
@@ -15,6 +15,7 @@
:global LogPrintExit;
:global ScriptLock;
:global SendNotification;
+:global SymbolForNotification;
$ScriptLock "collect-wireless-mac%TEMPL%";
@@ -53,7 +54,7 @@ $ScriptLock "collect-wireless-mac%TEMPL%";
"first seen on " . $DateTime . " connected to SSID " . $Ssid . ", interface " . $Interface);
$LogPrintExit info $Message false;
/ %PATH% 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" . \