diff options
Diffstat (limited to 'initramfs/initrd-stuff/etc/functions')
| -rw-r--r-- | initramfs/initrd-stuff/etc/functions | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions index bba03f4a..4dbaf746 100644 --- a/initramfs/initrd-stuff/etc/functions +++ b/initramfs/initrd-stuff/etc/functions @@ -204,7 +204,7 @@ esac } ############################################################################# # load a certain module - name of module with path in argument one, the -# error message in second argument +# error message in second argument -- fixme!! loadmod () { local modpath=$1 local module=`echo $modpath|sed -e "s,.*/,,"` @@ -215,6 +215,15 @@ if [ -f $modpath ] ; then echo "$error_modload '$module'. $msg" fi } +modloader () { +local path=$1 +local list=$2 +local mod +for mod in $list ; do + insmod /lib/modules/${KERNEL}/${path}/${mod}.ko 2>/dev/null || \ + modprobe ${MODPRV} ${mod} 2>/dev/null +done +} ############################################################################# # compute prefix bit number from netmask nm2pref () { |
