summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/bin/hwautocfg
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-03-29 01:55:06 +0100
committerDirk von Suchodoletz2009-03-29 01:55:06 +0100
commit1b7573c1682dc10011ec087a96f6d5c04ac88fa3 (patch)
tree9c7b779dd9759ae9571a9999c1ba0815ca221b3d /initramfs/stage3-stuff/bin/hwautocfg
parent * cleanup autostart files (diff)
downloadcore-1b7573c1682dc10011ec087a96f6d5c04ac88fa3.tar.gz
core-1b7573c1682dc10011ec087a96f6d5c04ac88fa3.tar.xz
core-1b7573c1682dc10011ec087a96f6d5c04ac88fa3.zip
Fixed psmouse module handling.
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2767 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/stage3-stuff/bin/hwautocfg')
-rwxr-xr-xinitramfs/stage3-stuff/bin/hwautocfg4
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