From 96c2314f22400aa67c6fc8ce5ceee8cf6429e48e Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sun, 29 Jan 2006 15:23:57 +0000 Subject: Added udevd to initial ramdisk. All devices seem to appear by now. Added oss compat. to hwautocfg and fixed some minor bugs ... git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@45 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/initrd-stuff/bin/hwautocfg | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'initrd/initrd-stuff/bin') diff --git a/initrd/initrd-stuff/bin/hwautocfg b/initrd/initrd-stuff/bin/hwautocfg index d722015e..b83479ea 100755 --- a/initrd/initrd-stuff/bin/hwautocfg +++ b/initrd/initrd-stuff/bin/hwautocfg @@ -4,7 +4,7 @@ # script for linux diskless clients, using hwconfig from # knoppix as base tool # -# Author(s): Dirk von Suchodoletz , 20-01-2006 +# Author(s): Dirk von Suchodoletz , 29-01-2006 # Blabla # Blub # @@ -334,10 +334,11 @@ for DRIVER in ${NWMODULES}; do DRIVERLIST="${DRIVERLIST} ${DRIVER}"; } done -# sound card setup +# sound card setup (alsa and oss compatibility drivers) . /etc/sysconfig/sound || DRIVER="snd-dummy" modprobe ${MODPRV} ${DRIVER} DRIVERLIST="${DRIVERLIST} ${DRIVER} " +modprobe -a ${MODPRV} snd_pcm_oss snd_mixer_oss # remaining drivers listed in /tmp/hwsetup.info cat /tmp/hwsetup.info| while read LINE ; do @@ -356,10 +357,13 @@ done # is initialized ( usleep 20 && hwsetup -v > /tmp/hwsetup.info +# check if USB mouse and/or keyboard is connected strinfile "genericwheelusb" /tmp/hwsetup.info && modprobe ${MODPRV} usbhid -if strinfile "IDE" /tmp/hwsetup.info ;then +# fixme - usb keyboard?? +if strinfile "IDE" /tmp/hwsetup.info ; then strinfile "CDROM" /tmp/hwsetup.info && modprobe ${MODPRV} ide_cd strinfile "HD" /tmp/hwsetup.info && modprobe ${MODPRV} ide_disk & + usleep 5 fi ) & # configure some variables from configuration file - wait for dhcp or ldap -- cgit v1.2.3-55-g7522