global: use $0 for $ScriptLock

This commit is contained in:
Christian Hesse 2021-02-22 19:52:20 +01:00
parent f46db91845
commit 041ca062b1
8 changed files with 8 additions and 8 deletions

View File

@ -18,7 +18,7 @@
:global ScriptLock;
:global WaitFullyConnected;
$ScriptLock "capsman-download-packages";
$ScriptLock $0;
$WaitFullyConnected;
:local PackagePath [ $CleanFilePath [ / caps-man manager get package-path ] ];

View File

@ -14,7 +14,7 @@
:global LogPrintExit2;
:global ScriptLock;
$ScriptLock "capsman-rolling-upgrade";
$ScriptLock $0;
:local InstalledVersion [ / system package update get installed-version ];

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -23,7 +23,7 @@
:global SymbolForNotification;
:global WaitFullyConnected;
$ScriptLock "log-forward";
$ScriptLock $0;
:if ([ :typeof $LogForwardRateLimit ] = "nothing") do={
:set LogForwardRateLimit 0;

View File

@ -16,7 +16,7 @@
:global ScriptLock;
:global VersionToNum;
$ScriptLock "packages-update";
$ScriptLock $0;
:local Update [ / system package update get ];

View File

@ -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;