mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-15 12:34:27 +02:00
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:
parent
ab8c9d04ff
commit
11daef75f0
1 changed files with 5 additions and 0 deletions
|
@ -33,6 +33,11 @@ $ScriptLock $0;
|
||||||
:local NumInstalled [ $VersionToNum ($Update->"installed-version") ];
|
:local NumInstalled [ $VersionToNum ($Update->"installed-version") ];
|
||||||
:local NumLatest [ $VersionToNum ($Update->"latest-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;
|
:local DoDowngrade false;
|
||||||
:if ($NumInstalled > $NumLatest) do={
|
:if ($NumInstalled > $NumLatest) do={
|
||||||
:if ([ $ScriptFromTerminal $0 ] = true) do={
|
:if ([ $ScriptFromTerminal $0 ] = true) do={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue