diff options
author | Christian Hesse <mail@eworm.de> | 2024-09-27 17:13:32 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-09-27 17:33:34 +0200 |
commit | 741276d3ce5ca0dd9ac57ca31a6f98248b0a314b (patch) | |
tree | 57e3b8656bf876e97f4d790dda88b736309d4dbb | |
parent | c2c72818de2cf35ea5b50eed3a505f86ed6be294 (diff) |
backup-partition: give warning on lock in device-mode
https://help.mikrotik.com/docs/display/ROS/Device-mode
-rw-r--r-- | backup-partition.rsc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backup-partition.rsc b/backup-partition.rsc index 51df454..bbc686b 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.17beta1" 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 ]; |