backup-partition: log the warning just once

This commit is contained in:
Christian Hesse 2024-10-09 14:30:29 +02:00
parent c955c94098
commit 85a7a16c15

View file

@ -19,6 +19,7 @@
:global PackagesUpdateBackupFailure;
:global LogPrint;
:global LogPrintOnce;
:global RequiredRouterOS;
:global ScriptFromTerminal;
:global ScriptLock;
@ -62,7 +63,7 @@
:if ([ $RequiredRouterOS $ScriptName "7.17beta2" false ] = true && \
([ /system/device-mode/get ]->"partitions") != true) do={
$LogPrint warning $ScriptName \
$LogPrintOnce warning $ScriptName \
("The device mode has locked switching partitions! You will need physical access!");
}