aboutsummaryrefslogtreecommitdiffstats
path: root/packages-update.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'packages-update.rsc')
-rw-r--r--packages-update.rsc8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages-update.rsc b/packages-update.rsc
index b08a48d..b4fab46 100644
--- a/packages-update.rsc
+++ b/packages-update.rsc
@@ -18,6 +18,7 @@
:global Grep;
:global LogPrint;
:global ParseKeyValueStore;
+ :global RequiredRouterOS;
:global ScriptFromTerminal;
:global ScriptLock;
:global VersionToNum;
@@ -99,6 +100,13 @@
:local DoDowngrade false;
:if ($NumInstalled > $NumLatest) do={
+ :if ([ $RequiredRouterOS $ScriptName "7.17beta2" false ] = true && \
+ ([ /system/device-mode/get ]->"downgrade") != true) do={
+ $LogPrint error $ScriptName \
+ ("The device mode has locked downgrades! You will need physical access!");
+ :error false;
+ }
+
:if ([ $ScriptFromTerminal $ScriptName ] = true) do={
:put "Latest version is older than installed one. Want to downgrade? [y/N]";
:if (([ /terminal/inkey timeout=60 ] % 32) = 25) do={