aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-12-07 22:58:39 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-12-07 23:01:01 +0100
commita98965d727fe574bc57b63e3b0f9db30d96ff3fd (patch)
tree127bad9da33d4b83a1530f4aee6784424ce00d43
parent1f5cc39b3cb388e69e479d8b2b1a774c2abde37d (diff)
global-functions: give a hint on RouterOS v7
-rw-r--r--global-functions6
1 files changed, 6 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index b313b70..9977504 100644
--- a/global-functions
+++ b/global-functions
@@ -1244,5 +1244,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;
+}
+
# signal we are ready
:set GlobalFunctionsReady true;