diff options
author | Christian Hesse <mail@eworm.de> | 2022-01-14 16:54:30 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-01-14 16:54:30 +0100 |
commit | db4afe28f06b5bc32cfe6f02b95f174888b3b6cc (patch) | |
tree | 0e568bee9fee737798196b2c212b1f52f9c698fa /global-functions | |
parent | 1089b7e7f9a6638c7783538f464916d16b3a6e87 (diff) | |
parent | 5135a413329ed401ae62ef6b4d05fe09fc0df2f7 (diff) |
Merge branch 'routeros-v7' into next
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/global-functions b/global-functions index 625bbe4..1e402d9 100644 --- a/global-functions +++ b/global-functions @@ -8,7 +8,7 @@ # https://git.eworm.de/cgit/routeros-scripts/about/ # expected configuration version -:global ExpectedConfigVersion 74; +:global ExpectedConfigVersion 75; # global variables not to be changed by user :global GlobalFunctionsReady false; @@ -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 |