mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-17 08:12:13 +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 GetMacVendor;
|
||||||
:global SendNotification;
|
:global SendNotification;
|
||||||
|
:global ScriptLock;
|
||||||
|
|
||||||
|
$ScriptLock "collect-wireless-mac.capsman";
|
||||||
|
|
||||||
:local PlaceBefore [ / caps-man access-list find where comment="--- collected above ---" disabled ];
|
:local PlaceBefore [ / caps-man access-list find where comment="--- collected above ---" disabled ];
|
||||||
:if ([ :len $PlaceBefore ] = 0) do={
|
:if ([ :len $PlaceBefore ] = 0) do={
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
|
|
||||||
:global GetMacVendor;
|
:global GetMacVendor;
|
||||||
:global SendNotification;
|
:global SendNotification;
|
||||||
|
:global ScriptLock;
|
||||||
|
|
||||||
|
$ScriptLock "collect-wireless-mac.local";
|
||||||
|
|
||||||
:local PlaceBefore [ / interface wireless access-list find where comment="--- collected above ---" disabled ];
|
:local PlaceBefore [ / interface wireless access-list find where comment="--- collected above ---" disabled ];
|
||||||
:if ([ :len $PlaceBefore ] = 0) do={
|
:if ([ :len $PlaceBefore ] = 0) do={
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
|
|
||||||
:global GetMacVendor;
|
:global GetMacVendor;
|
||||||
:global SendNotification;
|
:global SendNotification;
|
||||||
|
:global ScriptLock;
|
||||||
|
|
||||||
|
$ScriptLock "collect-wireless-mac%TEMPL%";
|
||||||
|
|
||||||
:local PlaceBefore [ / %PATH% access-list find where comment="--- collected above ---" disabled ];
|
:local PlaceBefore [ / %PATH% access-list find where comment="--- collected above ---" disabled ];
|
||||||
:if ([ :len $PlaceBefore ] = 0) do={
|
:if ([ :len $PlaceBefore ] = 0) do={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue