modprobe usbcore 2>/dev/null
for USBDEV in ehci uhci ohci;do
if modprobe "$USBDEV"-hcd >/dev/null 2>&1 ; then
if grep "$USBDEV"_hcd /proc/bus/pci/devices >/dev/null; then
action $"Initializing USB controller ("$USBDEV"-hcd): " /bin/true
usb=1
break
else
rmmod "$USBDEV"-hcd >/dev/null 2>&1
fi
else
if grep "$USBDEV"_hcd /proc/bus/pci/devices >/dev/null ; then
action $"Initializing USB controller ("$USBDEV"-hcd): " /bin/true
usb=1
break
fi
fi
done
if [ $usb = "1" -a ! -f /proc/bus/usb/devices ]; then
action $"Mounting USB filesystem: " mount -t usbfs none /proc/bus/usb
fi
needusbstorage=
if [ $usb = "1" ]; then
needusbstorage=`LC_ALL=C grep -e "^I.*Cls=08" /proc/bus/usb/devices 2>/dev/null`
action $"Initializing USB HID interface: " modprobe usbhid > /dev/null 2>&1
# action $"Initializing USB keyboard: " modprobe usbkbd 2> /dev/null
# action $"Initializing USB mouse: " modprobe usbmouse 2> /dev/null
fi
if [ -f /fastboot ] || LC_ALL=C grep -iq "fastboot" /proc/cmdline 2>/dev/null ; then
fastboot=yes
fi
if [ -f /fsckoptions ]; then
fsckoptions=`cat /fsckoptions`
fi
我原来在redhat9内核升级到2.6.8下USB可以用
起动的时候显示
Initializing USB controller (ehci-hcd) OK
Mounting USB filesystem: OK