aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-09-02 08:59:09 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-01-14 09:20:09 +0100
commitd03b6d9374b4f4884bfd90bfc04b1d26802d6666 (patch)
tree02e726af20e52a923fed12e4ff7d7847c544086b
parent1089b7e7f9a6638c7783538f464916d16b3a6e87 (diff)
global-functions: bump the required version for RouterOS 7.x
... but keep a warning when running RouterOS v6.
-rw-r--r--global-functions9
1 files changed, 4 insertions, 5 deletions
diff --git a/global-functions b/global-functions
index 625bbe4..388d24e 100644
--- a/global-functions
+++ b/global-functions
@@ -1257,12 +1257,11 @@
}
# 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={
- $LogPrintExit2 warning $0 ("RouterOS v7 brings some incompatible changes. Please switch to branch " . \
- "'routeros-v7', see https://git.eworm.de/cgit/routeros-scripts/about/#changes-for-routeros-v7") false;
+ $RequiredRouterOS "global-functions" "7.1" true;
+} 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