mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-16 13:04:30 +02:00
backup-partition: log the warning just once
This commit is contained in:
parent
c955c94098
commit
85a7a16c15
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
||||||
:global PackagesUpdateBackupFailure;
|
:global PackagesUpdateBackupFailure;
|
||||||
|
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
|
:global LogPrintOnce;
|
||||||
:global RequiredRouterOS;
|
:global RequiredRouterOS;
|
||||||
:global ScriptFromTerminal;
|
:global ScriptFromTerminal;
|
||||||
:global ScriptLock;
|
:global ScriptLock;
|
||||||
|
@ -62,7 +63,7 @@
|
||||||
|
|
||||||
:if ([ $RequiredRouterOS $ScriptName "7.17beta2" false ] = true && \
|
:if ([ $RequiredRouterOS $ScriptName "7.17beta2" false ] = true && \
|
||||||
([ /system/device-mode/get ]->"partitions") != true) do={
|
([ /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!");
|
("The device mode has locked switching partitions! You will need physical access!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue