aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrond Eivind Glomsrod <teg@redhat.com>2000-07-02 19:26:33 +0000
committerTrond Eivind Glomsrod <teg@redhat.com>2000-07-02 19:26:33 +0000
commit2822517fb406f898de8296fc39455ddb15757bd9 (patch)
tree2410a468ea82360c47f734a2ed1e54da713442b8
parent764551268560ae1c05c7d499a28b439f2ab923c5 (diff)
downloadinitscripts-2822517fb406f898de8296fc39455ddb15757bd9.tar
initscripts-2822517fb406f898de8296fc39455ddb15757bd9.tar.gz
initscripts-2822517fb406f898de8296fc39455ddb15757bd9.tar.bz2
initscripts-2822517fb406f898de8296fc39455ddb15757bd9.tar.xz
initscripts-2822517fb406f898de8296fc39455ddb15757bd9.zip
Dont use tail
-rwxr-xr-xrc.d/rc.sysinit4
1 files changed, 1 insertions, 3 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 4ddd8695..8122a5df 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -271,15 +271,13 @@ usb=1
modprobe usb-controller 2>/dev/null || usb=0
if [ $usb == "0" ] ; then
usbpresent=`grep -i usb /proc/pci`
- ioinfo=`grep -A2 -i usb /proc/pci |tail -n 1`
- uhci=`echo $ioinfo |grep "I/O at"`
+ uhci=`grep -A2 -i usb /proc/pci |grep "I/O at"`
if [ -n "$usbpresent" ]; then
usb=1
if [ -n "$uhci" ]; then
modprobe uhci 2>/dev/null || usb=0
else
modprobe usb-ohci 2>/dev/null || usb=0
- usbcontroller="usb-ohci"
fi
fi
fi