mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-02 17:24:36 +02:00
collect-wireless-mac: use $ScriptLock
This commit is contained in:
parent
fe1d234025
commit
e72b3dd4f1
3 changed files with 9 additions and 0 deletions
|
@ -10,6 +10,9 @@
|
|||
|
||||
:global GetMacVendor;
|
||||
:global SendNotification;
|
||||
:global ScriptLock;
|
||||
|
||||
$ScriptLock "collect-wireless-mac.capsman";
|
||||
|
||||
:local PlaceBefore [ / caps-man access-list find where comment="--- collected above ---" disabled ];
|
||||
:if ([ :len $PlaceBefore ] = 0) do={
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
|
||||
:global GetMacVendor;
|
||||
:global SendNotification;
|
||||
:global ScriptLock;
|
||||
|
||||
$ScriptLock "collect-wireless-mac.local";
|
||||
|
||||
:local PlaceBefore [ / interface wireless access-list find where comment="--- collected above ---" disabled ];
|
||||
:if ([ :len $PlaceBefore ] = 0) do={
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
|
||||
:global GetMacVendor;
|
||||
:global SendNotification;
|
||||
:global ScriptLock;
|
||||
|
||||
$ScriptLock "collect-wireless-mac%TEMPL%";
|
||||
|
||||
:local PlaceBefore [ / %PATH% access-list find where comment="--- collected above ---" disabled ];
|
||||
:if ([ :len $PlaceBefore ] = 0) do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue