1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

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

@ -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={