collect-wireless-mac: use $ScriptLock

This commit is contained in:
Christian Hesse 2019-02-21 18:37:19 +01:00
parent fe1d234025
commit e72b3dd4f1
3 changed files with 9 additions and 0 deletions

View file

@ -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={

View file

@ -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={

View file

@ -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={