backup-partition: drop warning on lock in device-mode

... as switching partitions is possible again in RouterOS 7.17beta4.
This commit is contained in:
Christian Hesse 2024-10-22 19:32:19 +02:00
parent 71c58c6afb
commit 435f70999c

View file

@ -19,8 +19,6 @@
:global PackagesUpdateBackupFailure;
:global LogPrint;
:global LogPrintOnce;
:global RequiredRouterOS;
:global ScriptFromTerminal;
:global ScriptLock;
:global VersionToNum;
@ -61,12 +59,6 @@
:error false;
}
:if ([ $RequiredRouterOS $ScriptName "7.17beta2" false ] = true && \
([ /system/device-mode/get ]->"partitions") != true) do={
$LogPrintOnce warning $ScriptName \
("The device mode has locked switching partitions! You will need physical access!");
}
:local FallbackToName [ /partitions/get $ActiveRunning fallback-to ];
:local FallbackTo [ /partition/find where name=$FallbackToName !active ];