aboutsummaryrefslogtreecommitdiffstats
path: root/backup-partition.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'backup-partition.rsc')
-rw-r--r--backup-partition.rsc7
1 files changed, 7 insertions, 0 deletions
diff --git a/backup-partition.rsc b/backup-partition.rsc
index 51df454..56738ba 100644
--- a/backup-partition.rsc
+++ b/backup-partition.rsc
@@ -19,6 +19,7 @@
:global PackagesUpdateBackupFailure;
:global LogPrint;
+ :global RequiredRouterOS;
:global ScriptFromTerminal;
:global ScriptLock;
:global VersionToNum;
@@ -59,6 +60,12 @@
:error false;
}
+ :if ([ $RequiredRouterOS $ScriptName "7.17beta2" false ] = true && \
+ ([ /system/device-mode/get ]->"partitions") != true) do={
+ $LogPrint 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 ];