backup-partition: lock the script

This commit is contained in:
Christian Hesse 2023-06-12 19:02:41 +02:00
parent 229e116999
commit fa851a7838

View file

@ -13,6 +13,9 @@
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
:global LogPrintExit2;
:global ScriptLock;
$ScriptLock $0;
:if ([ :len [ /partitions/find ] ] < 2) do={
$LogPrintExit2 error $0 ("Device does not have a fallback partition.") true;