Skip to content

Commit

Permalink
global-functions: give a hint on RouterOS v7
Browse files Browse the repository at this point in the history
  • Loading branch information
eworm-de committed Dec 7, 2021
1 parent 1f5cc39 commit a98965d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions global-functions
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit a98965d

Please sign in to comment.