mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-04 10:15:05 +02:00
collect-wireless-mac: add symbol in notification
This commit is contained in:
parent
1367a59c27
commit
956244d53b
4 changed files with 7 additions and 3 deletions
|
@ -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" . \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue