mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-31 08:14:56 +02:00
global-functions: bump the required version for RouterOS 7.x
... but keep a warning when running RouterOS v6.
This commit is contained in:
parent
1089b7e7f9
commit
d03b6d9374
1 changed files with 4 additions and 5 deletions
|
@ -1257,12 +1257,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
# check for required RouterOS version
|
# check for required RouterOS version
|
||||||
$RequiredRouterOS "global-functions" "6.47" true;
|
|
||||||
|
|
||||||
# ... and give a hint on RouterOS v7.
|
|
||||||
:if ([ $RequiredRouterOS "global-functions" "7.0" false ] = true) do={
|
:if ([ $RequiredRouterOS "global-functions" "7.0" false ] = true) do={
|
||||||
$LogPrintExit2 warning $0 ("RouterOS v7 brings some incompatible changes. Please switch to branch " . \
|
$RequiredRouterOS "global-functions" "7.1" true;
|
||||||
"'routeros-v7', see https://git.eworm.de/cgit/routeros-scripts/about/#changes-for-routeros-v7") false;
|
} else={
|
||||||
|
$LogPrintExit2 warning $0 ("Still running RouterOS v6, please switch to branch " . \
|
||||||
|
"'routeros-v6', see https://git.eworm.de/cgit/routeros-scripts/about/#changes-for-routeros-v6") false;
|
||||||
}
|
}
|
||||||
|
|
||||||
# signal we are ready
|
# signal we are ready
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue