diff options
author | Trond Eivind Glomsrod <teg@redhat.com> | 2000-07-10 22:55:20 +0000 |
---|---|---|
committer | Trond Eivind Glomsrod <teg@redhat.com> | 2000-07-10 22:55:20 +0000 |
commit | 84f9e41eac9a8d6e1790fe4a700985949d281214 (patch) | |
tree | 46e4b1a78077e7a7a0bc59c729cd6fdaf75e8515 | |
parent | 8f265d554ae80daa9d773479ce89735293354f97 (diff) | |
download | initscripts-84f9e41eac9a8d6e1790fe4a700985949d281214.tar initscripts-84f9e41eac9a8d6e1790fe4a700985949d281214.tar.gz initscripts-84f9e41eac9a8d6e1790fe4a700985949d281214.tar.bz2 initscripts-84f9e41eac9a8d6e1790fe4a700985949d281214.tar.xz initscripts-84f9e41eac9a8d6e1790fe4a700985949d281214.zip |
Don't try to initialize disabled (IRQwise) USB controller.
-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 |