53 |
verbose="" |
verbose="" |
54 |
img_vers="" |
img_vers="" |
55 |
builtins="" |
builtins="" |
56 |
modulefile=/etc/modules.conf |
modulefile="/etc/modules.conf" |
57 |
|
modprobeconf="/etc/modprobe.d/*" |
58 |
rc=0 |
rc=0 |
59 |
|
|
60 |
IMAGESIZE=4000 |
IMAGESIZE=4000 |
473 |
####### get modules ########## |
####### get modules ########## |
474 |
|
|
475 |
echo "Creating ${IMAGE_TYPE} initrd image" |
echo "Creating ${IMAGE_TYPE} initrd image" |
|
modulefile=/etc/modprobe.conf |
|
476 |
|
|
477 |
for n in ${PREMODS} |
for n in ${PREMODS} |
478 |
do |
do |
768 |
module=$(echo ${MODULE} | sed "s|.*/||" | sed "s/.k\?o$//") |
module=$(echo ${MODULE} | sed "s|.*/||" | sed "s/.k\?o$//") |
769 |
fullmodule=$(echo ${MODULE} | sed "s|.*/||") |
fullmodule=$(echo ${MODULE} | sed "s|.*/||") |
770 |
|
|
771 |
options=$(sed -n -e "s/^options[ ][ ]*${module}[ ][ ]*//p" ${modulefile} 2>/dev/null) |
options=$(sed -n -e "s/^options[ ][ ]*${module}[ ][ ]*//p" ${modprobeconf} 2>/dev/null) |
772 |
|
|
773 |
if [ -n "${options}" ] |
if [ -n "${options}" ] |
774 |
then |
then |