aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-02-22 19:52:20 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-02-24 21:51:56 +0100
commit041ca062b1d07843e7ef9ae8e99a753e344189e5 (patch)
tree3425599f6d4cdecd555b6fa4b33afafd8f8ead5f
parentf46db918453dcb8878b9a0de6e122fb0ea2224d9 (diff)
global: use $0 for $ScriptLock
-rw-r--r--capsman-download-packages2
-rw-r--r--capsman-rolling-upgrade2
-rw-r--r--collect-wireless-mac.capsman2
-rw-r--r--collect-wireless-mac.local2
-rw-r--r--collect-wireless-mac.template2
-rw-r--r--log-forward2
-rw-r--r--packages-update2
-rw-r--r--sms-forward2
8 files changed, 8 insertions, 8 deletions
diff --git a/capsman-download-packages b/capsman-download-packages
index 37e2658..5b03bba 100644
--- a/capsman-download-packages
+++ b/capsman-download-packages
@@ -18,7 +18,7 @@
:global ScriptLock;
:global WaitFullyConnected;
-$ScriptLock "capsman-download-packages";
+$ScriptLock $0;
$WaitFullyConnected;
:local PackagePath [ $CleanFilePath [ / caps-man manager get package-path ] ];
diff --git a/capsman-rolling-upgrade b/capsman-rolling-upgrade
index fe4410a..9e7aec0 100644
--- a/capsman-rolling-upgrade
+++ b/capsman-rolling-upgrade
@@ -14,7 +14,7 @@
:global LogPrintExit2;
:global ScriptLock;
-$ScriptLock "capsman-rolling-upgrade";
+$ScriptLock $0;
:local InstalledVersion [ / system package update get installed-version ];
diff --git a/collect-wireless-mac.capsman b/collect-wireless-mac.capsman
index 248a14d..ca43dc5 100644
--- a/collect-wireless-mac.capsman
+++ b/collect-wireless-mac.capsman
@@ -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;
diff --git a/collect-wireless-mac.local b/collect-wireless-mac.local
index 20a5f83..7489c4c 100644
--- a/collect-wireless-mac.local
+++ b/collect-wireless-mac.local
@@ -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;
diff --git a/collect-wireless-mac.template b/collect-wireless-mac.template
index fe84287..b6c4efa 100644
--- a/collect-wireless-mac.template
+++ b/collect-wireless-mac.template
@@ -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;
diff --git a/log-forward b/log-forward
index e90e720..def04e6 100644
--- a/log-forward
+++ b/log-forward
@@ -23,7 +23,7 @@
:global SymbolForNotification;
:global WaitFullyConnected;
-$ScriptLock "log-forward";
+$ScriptLock $0;
:if ([ :typeof $LogForwardRateLimit ] = "nothing") do={
:set LogForwardRateLimit 0;
diff --git a/packages-update b/packages-update
index d23be09..fb5c7fa 100644
--- a/packages-update
+++ b/packages-update
@@ -16,7 +16,7 @@
:global ScriptLock;
:global VersionToNum;
-$ScriptLock "packages-update";
+$ScriptLock $0;
:local Update [ / system package update get ];
diff --git a/sms-forward b/sms-forward
index 58ed520..1d47000 100644
--- a/sms-forward
+++ b/sms-forward
@@ -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;