From 9c42263988e6c1615d348832a92c091c3414aa08 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 12 Dec 2022 15:16:36 +0100 Subject: global-functions: check RouterOS version before loading modules --- global-functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'global-functions') 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; -- cgit v1.2.3-54-g00ecf