backup-upload: refuse when running from backup partition

This commit is contained in:
Christian Hesse 2025-01-06 09:30:38 +01:00
parent 6c990079a6
commit d9693f4d5f

View file

@ -53,6 +53,14 @@
: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 PackagesUpdateBackupFailure true;
:set ExitOK true;
:error false;
}
$WaitFullyConnected;
:if ([ $ScriptFromTerminal $ScriptName ] = false && $BackupRandomDelay > 0) do={