diff options
-rw-r--r-- | collect-wireless-mac.capsman | 3 | ||||
-rw-r--r-- | collect-wireless-mac.local | 3 | ||||
-rw-r--r-- | collect-wireless-mac.template | 3 | ||||
-rw-r--r-- | global-functions | 1 |
4 files changed, 7 insertions, 3 deletions
diff --git a/collect-wireless-mac.capsman b/collect-wireless-mac.capsman index a9a331e..7abae6a 100644 --- a/collect-wireless-mac.capsman +++ b/collect-wireless-mac.capsman @@ -14,6 +14,7 @@ :global LogPrintExit; :global ScriptLock; :global SendNotification; +:global SymbolForNotification; $ScriptLock "collect-wireless-mac.capsman"; @@ -51,7 +52,7 @@ $ScriptLock "collect-wireless-mac.capsman"; "first seen on " . $DateTime . " connected to SSID " . $Ssid . ", interface " . $Interface); $LogPrintExit info $Message false; / caps-man 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" . \ 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" . \ 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" . \ diff --git a/global-functions b/global-functions index 84d8d75..f46aff3 100644 --- a/global-functions +++ b/global-functions @@ -790,6 +790,7 @@ "high-voltage-sign"="\E2\9A\A1"; "incoming-envelope"="\F0\9F\93\A8"; "lock-with-ink-pen"="\F0\9F\94\8F"; + "mobile-phone"="\F0\9F\93\B1"; "pushpin"="\F0\9F\93\8C"; "sparkles"="\E2\9C\A8"; "warning-sign"="\E2\9A\A0"; |