aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-03-22 18:03:46 +0000
committerBill Nottingham <notting@redhat.com>2001-03-22 18:03:46 +0000
commit84b8f33c121bd179ae35c21c3a7d4133cb39f129 (patch)
tree131c4050eb56a243d0c9d9d3d2b173f5ae2c31df /rc.d/rc.sysinit
parent1d76c335f1b777abcf58627974303b3eda139da9 (diff)
downloadinitscripts-84b8f33c121bd179ae35c21c3a7d4133cb39f129.tar
initscripts-84b8f33c121bd179ae35c21c3a7d4133cb39f129.tar.gz
initscripts-84b8f33c121bd179ae35c21c3a7d4133cb39f129.tar.bz2
initscripts-84b8f33c121bd179ae35c21c3a7d4133cb39f129.tar.xz
initscripts-84b8f33c121bd179ae35c21c3a7d4133cb39f129.zip
do explicitly load usb-storage; it's the simplest solution for now
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit7
1 files changed, 7 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 09118608..261ee762 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -169,10 +169,12 @@ 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
mouseoutput=`cat /proc/bus/usb/devices 2>/dev/null|grep -E "^I.*Cls=03.*Prot=02"`
kbdoutput=`cat /proc/bus/usb/devices 2>/dev/null|grep -E "^I.*Cls=03.*Prot=01"`
+ needusbstorage=`cat /proc/bus/usb/devices 2>/dev/null|grep -e "^I.*Cls=08"`
if [ -n "$kbdoutput" ] || [ -n "$mouseoutput" ]; then
action $"Initializing USB HID interface: " modprobe hid 2> /dev/null
fi
@@ -637,6 +639,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