diff options
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index d249db77..18888ab4 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -152,11 +152,11 @@ else usb=1 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"` + usbpresent=`grep -i usb /proc/pci 2>/dev/nill` + uhci=`grep -A2 -i usb /proc/pci 2>/dev/null |grep "I/O at"` # Don't try to initialize disabled USB controllers - uhciirq=`grep -A1 -i usb /proc/pci |grep "IRQ"` + uhciirq=`grep -A1 -i usb /proc/pci 2>/dev/null |grep "IRQ"` if [ -n "$usbpresent" ]; then usb=1 if [ -n "$uhci" ] && [ -n "$uhciirq" ] ; then |