--- rc.sysinit.bkp 2004-10-13 12:29:52.000000000 +0200 +++ rc.sysinit 2004-10-25 12:58:11.000000000 +0200 @@ -21,9 +21,18 @@ HOSTNAME=localhost fi +KERNEL_VER=`uname -r` + # Mount /proc (done here so volume labels can work with fsck) mount -n -t proc /proc /proc +SUBKERN_VER=`echo ${KERNEL_VER:0:3}` + +if [ "$SUBKERN_VER" != "2.4" ]; then +echo "Mouting sysfs filesystem" +mount -n -t sysfs /sys /sys +fi + . /etc/init.d/functions HOSTTYPE=`uname -m` @@ -188,13 +197,25 @@ fi needusbstorage= -if [ $usb = "1" ]; then +if [ "$SUBKERN_VER" != "2.4" ]; then + if [ $usb = "1" ]; then + needusbstorage=`LC_ALL=C grep -e "^I.*Cls=08" /sys/bus/usb/devices 2>/dev/null` + LC_ALL=C grep 'usbhid' /sys/bus/usb/drivers || action $"Initializing USB HID interface: " modprobe usbhid 2> /dev/null + action $"Initializing USB keyboard: " modprobe usbkbd 2> /dev/null + action $"Initializing USB mouse: " modprobe usbmouse 2> /dev/null + fi +else + if [ $usb = "1" ]; then needusbstorage=`LC_ALL=C grep -e "^I.*Cls=08" /proc/bus/usb/devices 2>/dev/null` - LC_ALL=C grep 'hid' /proc/bus/usb/drivers || action $"Initializing USB HID interface: " modprobe hid 2> /dev/null + + LC_ALL=C grep 'hid' /proc/bus/usb/drivers || action $"Initializing USB HID interface: " modprobe usbhid 2> /dev/null action $"Initializing USB keyboard: " modprobe keybdev 2> /dev/null action $"Initializing USB mouse: " modprobe mousedev 2> /dev/null + fi fi + + if [ -f /fastboot ] || strstr "$cmdline" fastboot ; then fastboot=yes fi