aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--check-routeros-update3
1 files changed, 3 insertions, 0 deletions
diff --git a/check-routeros-update b/check-routeros-update
index d21a7d0..b82df24 100644
--- a/check-routeros-update
+++ b/check-routeros-update
@@ -20,6 +20,7 @@
:global DeviceInfo;
:global LogPrintExit2;
:global ScriptFromTerminal;
+:global ScriptLock;
:global SendNotification2;
:global SymbolForNotification;
:global VersionToNum;
@@ -34,6 +35,8 @@
:error "Waiting for system to reboot.";
}
+$ScriptLock $0;
+
$WaitFullyConnected;
:if ([ :len [ / system package find where name="wireless" disabled=no ] ] > 0) do={