Commit dd6ef1b1 authored by Martin Peres's avatar Martin Peres
Browse files

initscript/modules: do not error out when having no modules to load

parent b7dac2d0
......@@ -77,7 +77,9 @@ function parse_cmdline {
}
function load_modules {
for mod_name in `echo "$1" | busybox tr ',' '\n'`; do
[ -z "$@" ] && return
for mod_name in `echo "$@" | busybox tr ',' '\n'`; do
path="$MODULES_PATH/$mod_name"
echo "Load the module: $path"
insmod "$path"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment