check-routeros-update: lock against multiple invocation

This commit is contained in:
Christian Hesse 2021-12-07 15:40:14 +01:00
parent dab04fd63e
commit 8f8130775f

View file

@ -20,6 +20,7 @@
:global DeviceInfo; :global DeviceInfo;
:global LogPrintExit2; :global LogPrintExit2;
:global ScriptFromTerminal; :global ScriptFromTerminal;
:global ScriptLock;
:global SendNotification2; :global SendNotification2;
:global SymbolForNotification; :global SymbolForNotification;
:global VersionToNum; :global VersionToNum;
@ -34,6 +35,8 @@
:error "Waiting for system to reboot."; :error "Waiting for system to reboot.";
} }
$ScriptLock $0;
$WaitFullyConnected; $WaitFullyConnected;
:if ([ :len [ / system package find where name="wireless" disabled=no ] ] > 0) do={ :if ([ :len [ / system package find where name="wireless" disabled=no ] ] > 0) do={