diff options
author | Christian Hesse <mail@eworm.de> | 2023-11-21 13:06:44 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-11-21 13:14:51 +0100 |
commit | 11daef75f033443e1b15beadb5b74985db4f5812 (patch) | |
tree | e3de0aa5d43f0ee4b7e05b70dd858afabea13715 /packages-update.rsc | |
parent | ab8c9d04ffb331dd5c00f0cceae395a871df7936 (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
Diffstat (limited to 'packages-update.rsc')
-rw-r--r-- | packages-update.rsc | 5 |
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={ |