check-routeros-update: refuse when running from backup partition

This commit is contained in:
Christian Hesse 2025-01-06 09:30:59 +01:00
parent d9693f4d5f
commit 665516b33d

View file

@ -51,6 +51,13 @@
:set ExitOK true;
:error false;
}
:if ([ :len [ /system/scheduler/find where name="running-from-backup-partition" ] ] > 0) do={
$LogPrint warning $ScriptName ("Running from backup partition, refusing to act.");
:set ExitOK true;
:error false;
}
$WaitFullyConnected;
:if ([ :len [ /system/scheduler/find where name="_RebootForUpdate" ] ] > 0) do={