mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-13 22:48:42 +02:00
global-functions: check RouterOS version before loading modules
This commit is contained in:
parent
7f7c3a7a70
commit
9c42263988
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue