aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-10-22 19:38:20 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-10-23 20:17:44 +0200
commit07c95763775cb5fdef056ef6ba7ff3ac1399dbaf (patch)
tree58b60b0682c8cd5690ed68340a2f3d3663823e74
parent435f70999c0fc28aaf804c00552d0d54dcf10806 (diff)
packages-update: check for explicit state...routeros-7.17beta4-2
... as all device-mode properties are given since RouterOS 7.14beta4. Let's assume we do not have to care about RouterOS 7.14beta2 any more... As older versions will not match the check we can now merge right away.
-rw-r--r--packages-update.rsc4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages-update.rsc b/packages-update.rsc
index b4fab46..c2f0ba6 100644
--- a/packages-update.rsc
+++ b/packages-update.rsc
@@ -18,7 +18,6 @@
:global Grep;
:global LogPrint;
:global ParseKeyValueStore;
- :global RequiredRouterOS;
:global ScriptFromTerminal;
:global ScriptLock;
:global VersionToNum;
@@ -100,8 +99,7 @@
:local DoDowngrade false;
:if ($NumInstalled > $NumLatest) do={
- :if ([ $RequiredRouterOS $ScriptName "7.17beta2" false ] = true && \
- ([ /system/device-mode/get ]->"downgrade") != true) do={
+ :if (([ /system/device-mode/get ]->"downgrade") = false) do={
$LogPrint error $ScriptName \
("The device mode has locked downgrades! You will need physical access!");
:error false;