firmware-upgrade-reboot: lock the script

This commit is contained in:
Christian Hesse 2023-06-13 08:54:36 +02:00
parent 497915b4a2
commit 51ebbd46d9

View file

@ -11,8 +11,11 @@
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
:global LogPrintExit2;
:global ScriptLock;
:global VersionToNum;
$ScriptLock $0;
:local RouterBoard [ /system/routerboard/get ];
:if ($RouterBoard->"current-firmware" = $RouterBoard->"upgrade-firmware") do={
$LogPrintExit2 info $0 ("Current and upgrade firmware match with version " . \