From 8f8130775f9dc2590e3408621c8a5ceb80b76d76 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 7 Dec 2021 15:40:14 +0100 Subject: check-routeros-update: lock against multiple invocation --- check-routeros-update | 3 +++ 1 file changed, 3 insertions(+) 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={ -- cgit v1.2.3-70-g09d2