Browse Source

global: use $0 for $ScriptLock

pull/15/head
Christian Hesse 7 months ago
parent
commit
041ca062b1
  1. 2
      capsman-download-packages
  2. 2
      capsman-rolling-upgrade
  3. 2
      collect-wireless-mac.capsman
  4. 2
      collect-wireless-mac.local
  5. 2
      collect-wireless-mac.template
  6. 2
      log-forward
  7. 2
      packages-update
  8. 2
      sms-forward

2
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 ] ];

2
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 ];

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

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

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

2
log-forward

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

2
packages-update

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

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

Loading…
Cancel
Save