packages-update: refuse automatic update to RouterOS 7.13

... as migration to wireless or wifi package has to be done. Please
update manually by running:

    /system/package/update/install
This commit is contained in:
Christian Hesse 2023-11-21 13:06:44 +01:00
parent ab8c9d04ff
commit 11daef75f0

View file

@ -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={