diff options
| author | Dirk von Suchodoletz | 2007-02-26 03:33:04 +0100 |
|---|---|---|
| committer | Dirk von Suchodoletz | 2007-02-26 03:33:04 +0100 |
| commit | e2e6a72fc2a0e57f8332ff18cf8e4c2bde47d6bd (patch) | |
| tree | 6c941b52530fb7d267a2901a939e3f873764c94e /initramfs/initrd-stuff/etc | |
| parent | First draft of function to stack the root fs from different sources with unionfs (diff) | |
| download | core-e2e6a72fc2a0e57f8332ff18cf8e4c2bde47d6bd.tar.gz core-e2e6a72fc2a0e57f8332ff18cf8e4c2bde47d6bd.tar.xz core-e2e6a72fc2a0e57f8332ff18cf8e4c2bde47d6bd.zip | |
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
Diffstat (limited to 'initramfs/initrd-stuff/etc')
| -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 () { |
