mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global: use $0 for $ScriptLock
This commit is contained in:
parent
f46db91845
commit
041ca062b1
8 changed files with 8 additions and 8 deletions
|
@ -18,7 +18,7 @@
|
|||
:global ScriptLock;
|
||||
:global WaitFullyConnected;
|
||||
|
||||
$ScriptLock "capsman-download-packages";
|
||||
$ScriptLock $0;
|
||||
$WaitFullyConnected;
|
||||
|
||||
:local PackagePath [ $CleanFilePath [ / caps-man manager get package-path ] ];
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
:global LogPrintExit2;
|
||||
:global ScriptLock;
|
||||
|
||||
$ScriptLock "capsman-rolling-upgrade";
|
||||
$ScriptLock $0;
|
||||
|
||||
:local InstalledVersion [ / system package update get installed-version ];
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
:global SendNotification;
|
||||
:global SymbolForNotification;
|
||||
|
||||
$ScriptLock "collect-wireless-mac.capsman";
|
||||
$ScriptLock $0;
|
||||
|
||||
:if ([ :len [ / caps-man access-list find where comment="--- collected above ---" disabled ] ] = 0) do={
|
||||
/ caps-man access-list add comment="--- collected above ---" disabled=yes;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
:global SendNotification;
|
||||
:global SymbolForNotification;
|
||||
|
||||
$ScriptLock "collect-wireless-mac.local";
|
||||
$ScriptLock $0;
|
||||
|
||||
:if ([ :len [ / interface wireless access-list find where comment="--- collected above ---" disabled ] ] = 0) do={
|
||||
/ interface wireless access-list add comment="--- collected above ---" disabled=yes;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
:global SendNotification;
|
||||
:global SymbolForNotification;
|
||||
|
||||
$ScriptLock "collect-wireless-mac%TEMPL%";
|
||||
$ScriptLock $0;
|
||||
|
||||
:if ([ :len [ / %PATH% access-list find where comment="--- collected above ---" disabled ] ] = 0) do={
|
||||
/ %PATH% access-list add comment="--- collected above ---" disabled=yes;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
:global SymbolForNotification;
|
||||
:global WaitFullyConnected;
|
||||
|
||||
$ScriptLock "log-forward";
|
||||
$ScriptLock $0;
|
||||
|
||||
:if ([ :typeof $LogForwardRateLimit ] = "nothing") do={
|
||||
:set LogForwardRateLimit 0;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
:global ScriptLock;
|
||||
:global VersionToNum;
|
||||
|
||||
$ScriptLock "packages-update";
|
||||
$ScriptLock $0;
|
||||
|
||||
:local Update [ / system package update get ];
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
:global SymbolForNotification;
|
||||
:global WaitFullyConnected;
|
||||
|
||||
$ScriptLock "sms-forward";
|
||||
$ScriptLock $0;
|
||||
|
||||
:if ([ / tool sms get receive-enabled ] = false) do={
|
||||
$LogPrintExit2 warning $0 ("Receiving of SMS is not enabled.") true;
|
||||
|
|
Loading…
Reference in a new issue