aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-11-21 13:06:44 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-11-21 13:14:51 +0100
commit11daef75f033443e1b15beadb5b74985db4f5812 (patch)
treee3de0aa5d43f0ee4b7e05b70dd858afabea13715
parentab8c9d04ffb331dd5c00f0cceae395a871df7936 (diff)
packages-update: refuse automatic update to RouterOS 7.13routeros-7.13beta1-3
... as migration to wireless or wifi package has to be done. Please update manually by running: /system/package/update/install
-rw-r--r--packages-update.rsc5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages-update.rsc b/packages-update.rsc
index 85a241a..d011ea1 100644
--- a/packages-update.rsc
+++ b/packages-update.rsc
@@ -33,6 +33,11 @@ $ScriptLock $0;
:local NumInstalled [ $VersionToNum ($Update->"installed-version") ];
:local NumLatest [ $VersionToNum ($Update->"latest-version") ];
+:if ($NumInstalled < 0x070d0000 && $NumLatest > 0x070d0000) do={
+ $LogPrintExit2 error $0 ("Migration to wireless/wifi package in RouterOS " . \
+ ($Update->"latest-version") . " is pending. Please update manually!") true;
+}
+
:local DoDowngrade false;
:if ($NumInstalled > $NumLatest) do={
:if ([ $ScriptFromTerminal $0 ] = true) do={