projects
/
genkernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adding modules cmdline options for genkernel (module.option[=value]).
[genkernel.git]
/
defaults
/
modprobe
diff --git
a/defaults/modprobe
b/defaults/modprobe
index ba2d890f3cf88cdffda8f2f85dbc5ceca81b24fb..1f606bd2b7b49603ecfa3488eeb0e440b5c3bcd4 100755
(executable)
--- a/
defaults/modprobe
+++ b/
defaults/modprobe
@@
-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