aboutsummaryrefslogtreecommitdiffstats
path: root/firmware-upgrade-reboot.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-06-13 08:54:36 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-06-13 08:58:32 +0200
commit51ebbd46d969d6d025270dcab9a746589e1b613b (patch)
tree54a6b0fb27c33aa0856c89c33d98af871fc630ac /firmware-upgrade-reboot.rsc
parent497915b4a2ea1fe0ef2f8659b9559f22c0aaa23b (diff)
firmware-upgrade-reboot: lock the script
Diffstat (limited to 'firmware-upgrade-reboot.rsc')
-rw-r--r--firmware-upgrade-reboot.rsc3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware-upgrade-reboot.rsc b/firmware-upgrade-reboot.rsc
index cc45c38..ec2babc 100644
--- a/firmware-upgrade-reboot.rsc
+++ b/firmware-upgrade-reboot.rsc
@@ -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 " . \