Adding modules cmdline options for genkernel (module.option[=value]).
[genkernel.git] / defaults / modprobe
index ba2d890f3cf88cdffda8f2f85dbc5ceca81b24fb..1f606bd2b7b49603ecfa3488eeb0e440b5c3bcd4 100755 (executable)
@@ -110,7 +110,10 @@ modprobe2() {
                        filler=1
                fi
        done
-       ${INSMOD} ${real_path} > /dev/null 2>&1
+       # placing options into x
+       x="${real_path##*/}"
+       x="`cat "/etc/cmdline/${x%.ko*}".* 2>/dev/null`"
+       ${INSMOD} ${real_path} ${x} > /dev/null 2>&1
        ret=$?
        if [ ${ret} -eq 0 ]
        then