diff options
-rwxr-xr-x | initramfs/stage3-stuff/bin/hwautocfg | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/initramfs/stage3-stuff/bin/hwautocfg b/initramfs/stage3-stuff/bin/hwautocfg index aee401f1..22f00561 100755 --- a/initramfs/stage3-stuff/bin/hwautocfg +++ b/initramfs/stage3-stuff/bin/hwautocfg @@ -86,6 +86,7 @@ mdev -s grep -q -E "Audio|sound" /etc/hwinfo.data || modprobe snd-dummy modprobe ${MODPRV} snd-pcm-oss modprobe ${MODPRV} snd-mixer-oss +#ln -s /proc/sound/oss/sndstat /dev/sndstat [ $DEBUGLEVEL -eq 21 ] && echo "** finished most of module loading at $(sysup)" @@ -149,7 +150,8 @@ 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 +grep -q -i "PS/2" /etc/hwinfo.mouse || \ + { rmmod psmouse 2>/dev/null; rm /dev/psaux 2>/dev/null; } # more sophistication possible :) # remove /sbin/mdev as not available in stage4 echo >/proc/sys/kernel/hotplug |