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;