From 7df1934b102f7277ace2fd1539924d718d207ed6 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sun, 11 Jan 2009 22:58:30 +0000 Subject: /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 --- initramfs/stage3-stuff/bin/hwautocfg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'initramfs/stage3-stuff/bin/hwautocfg') 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 } -- cgit v1.2.3-55-g7522