mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: check RouterOS version before loading modules
This commit is contained in:
@ -1203,6 +1203,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# check for required RouterOS version
|
||||||
|
$RequiredRouterOS $0 "7.1" true;
|
||||||
|
|
||||||
# load modules
|
# load modules
|
||||||
:foreach Script in=[ /system/script/find where name ~ "^mod/." ] do={
|
:foreach Script in=[ /system/script/find where name ~ "^mod/." ] do={
|
||||||
:local ScriptVal [ /system/script/get $Script ];
|
:local ScriptVal [ /system/script/get $Script ];
|
||||||
@ -1217,8 +1220,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# check for required RouterOS version
|
|
||||||
$RequiredRouterOS $0 "7.1" true;
|
|
||||||
|
|
||||||
# signal we are ready
|
# signal we are ready
|
||||||
:set GlobalFunctionsReady true;
|
:set GlobalFunctionsReady true;
|
||||||
|
Reference in New Issue
Block a user