From e2e6a72fc2a0e57f8332ff18cf8e4c2bde47d6bd Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Mon, 26 Feb 2007 02:33:04 +0000 Subject: Restructured hwautocfg (moved hw related parts of init into it) - should fix hangs on certain hardware (not fully tested yet) ... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@721 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/initrd-stuff/etc/functions | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'initramfs/initrd-stuff/etc/functions') 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 () { -- cgit v1.2.3-55-g7522