diff options
author | Bill Nottingham <notting@redhat.com> | 2001-02-23 05:29:53 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-02-23 05:29:53 +0000 |
commit | 34fc2a851146dc042a1140b9451e74f35a0cbc22 (patch) | |
tree | a78953bb606818594069113eb1eacd2f71166872 | |
parent | 184aa36ef031689e4b20d743d4f27742507cdce2 (diff) | |
download | initscripts-34fc2a851146dc042a1140b9451e74f35a0cbc22.tar initscripts-34fc2a851146dc042a1140b9451e74f35a0cbc22.tar.gz initscripts-34fc2a851146dc042a1140b9451e74f35a0cbc22.tar.bz2 initscripts-34fc2a851146dc042a1140b9451e74f35a0cbc22.tar.xz initscripts-34fc2a851146dc042a1140b9451e74f35a0cbc22.zip |
load usb-storage if needed
-rwxr-xr-x | rc.d/rc.sysinit | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 61785e8e..24fe506d 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -165,11 +165,13 @@ if ! grep -iq "nousb" /proc/cmdline 2>/dev/null && grep -q "usb" /proc/devices 2 usb=1 fi +needusbstorage= if [ $usb = "1" ]; then sleep 5 action $"Mounting USB filesystem: " mount -t usbdevfs usbdevfs /proc/bus/usb mouseoutput=`cat /proc/bus/usb/devices|grep -E "^I.*Cls=03.*Prot=02"` kbdoutput=`cat /proc/bus/usb/devices|grep -E "^I.*Cls=03.*Prot=01"` + needusbstorage=`cat /proc/bus/usb/devices | grep -e "^I.*Cls=08.*"` if [ -n "$kbdoutput" ] || [ -n "$mouseoutput" ]; then action $"Initializing USB HID interface: " modprobe hid 2> /dev/null fi @@ -601,6 +603,11 @@ if [ -f /proc/scsi/scsi ] && grep -q 'Type: Sequential-Access' /proc/scsi/scsi fi fi +# Load usb storage here, to match most other things +if [ -n "$needusbstorage" ]; then + modprobe usb-storage >/dev/null 2>&1 +fi + # If they asked for ide-scsi, load it if grep -q "ide-scsi" /proc/cmdline ; then modprobe ide-cd >/dev/null 2>&1 |