diff options
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 563a3bc7..5e06d541 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -151,9 +151,12 @@ modprobe usb-controller 2>/dev/null || usb=0 if [ $usb == "0" ] ; then usbpresent=`grep -i usb /proc/pci` uhci=`grep -A2 -i usb /proc/pci |grep "I/O at"` + + # Don't try to initialize disabled USB controllers + uhciirq=`grep -A1 -i usb /proc/pci |grep "IRQ"` if [ -n "$usbpresent" ]; then usb=1 - if [ -n "$uhci" ]; then + if [ -n "$uhci" ] && [ -n "$uhciirq" ] ; then modprobe uhci 2>/dev/null || usb=0 else modprobe usb-ohci 2>/dev/null || usb=0 |