summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/bin/hwautocfg
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-01-11 23:58:30 +0100
committerDirk von Suchodoletz2009-01-11 23:58:30 +0100
commit7df1934b102f7277ace2fd1539924d718d207ed6 (patch)
tree4f261f9813c7e1ea937b8ea78970d65d6af30400 /initramfs/stage3-stuff/bin/hwautocfg
parentMore fixes for xserver setup ... (diff)
downloadcore-7df1934b102f7277ace2fd1539924d718d207ed6.tar.gz
core-7df1934b102f7277ace2fd1539924d718d207ed6.tar.xz
core-7df1934b102f7277ace2fd1539924d718d207ed6.zip
/sbin/mdev needs to be present in /proc/sys/kernel/hotplug to load
any firmware, e.g. for WLAN cards, properly (see #266) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2466 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/stage3-stuff/bin/hwautocfg')
-rwxr-xr-xinitramfs/stage3-stuff/bin/hwautocfg6
1 files changed, 5 insertions, 1 deletions
diff --git a/initramfs/stage3-stuff/bin/hwautocfg b/initramfs/stage3-stuff/bin/hwautocfg
index f50b8432..39969808 100755
--- a/initramfs/stage3-stuff/bin/hwautocfg
+++ b/initramfs/stage3-stuff/bin/hwautocfg
@@ -24,8 +24,9 @@ for tool in /usr/sbin/acpidump \
echo -e "#!/bin/ash" >${tool}
chmod u+x ${tool}
done
-# no kernel messages
+# no kernel messages, switch on hotplug via /sbin/mdev
echo "0 0 0 0" >/proc/sys/kernel/printk
+echo "/sbin/mdev" >/proc/sys/kernel/hotplug
modprobe ${MODPRV} usbhid &
nwcardlist=$(echo ${slxconf_listnwmod}|sed "s/\ /|/g")
hwinfo --netcard --usb-ctrl | grep modprobe | grep -E "$nwcardlist|hcd" | \
@@ -138,10 +139,13 @@ return 0
#############################################################################
# cleanup/finishing part
finish () {
+mdev -s
# remove unneeded disk and mouse drivers
[ ! -s /etc/hwinfo.disk ] && rmmod sd_mod 2>/dev/null
grep -q -i "/dev/psaux" || rmmod psmouse 2>/dev/null
# more sophistication possible :)
+# remove /sbin/mdev as not available in stage4
+echo >/proc/sys/kernel/hotplug
return 0
}