aboutsummaryrefslogtreecommitdiffstats
path: root/backup-partition.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-10-09 14:30:29 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-10-09 14:30:29 +0200
commit85a7a16c1526acfc86ec313e8527fb616f142a57 (patch)
tree4f02c30a1ddfd919365a4bc227be49d030c46785 /backup-partition.rsc
parentc955c94098190847856c62e4e9b437200b19884c (diff)
backup-partition: log the warning just once
Diffstat (limited to 'backup-partition.rsc')
-rw-r--r--backup-partition.rsc3
1 files changed, 2 insertions, 1 deletions
diff --git a/backup-partition.rsc b/backup-partition.rsc
index 56738ba..8b4be9b 100644
--- a/backup-partition.rsc
+++ b/backup-partition.rsc
@@ -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!");
}