diff options
author | Christian Hesse <mail@eworm.de> | 2022-12-12 15:16:36 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-12-12 15:16:36 +0100 |
commit | 9c42263988e6c1615d348832a92c091c3414aa08 (patch) | |
tree | a4814327911d6e7466356257b59452374f6ab521 /global-functions | |
parent | 7f7c3a7a700f97f291d1749c10b155ab8384052e (diff) |
global-functions: check RouterOS version before loading modules
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/global-functions b/global-functions index 260a7d4..75a7dda 100644 --- a/global-functions +++ b/global-functions @@ -1203,6 +1203,9 @@ } } +# check for required RouterOS version +$RequiredRouterOS $0 "7.1" true; + # load modules :foreach Script in=[ /system/script/find where name ~ "^mod/." ] do={ :local ScriptVal [ /system/script/get $Script ]; @@ -1217,8 +1220,5 @@ } } -# check for required RouterOS version -$RequiredRouterOS $0 "7.1" true; - # signal we are ready :set GlobalFunctionsReady true; |