mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-04 10:15:05 +02:00
firmware-upgrade-reboot: lock the script
This commit is contained in:
parent
497915b4a2
commit
51ebbd46d9
1 changed files with 3 additions and 0 deletions
|
@ -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 " . \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue