aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-04-16 07:45:46 +0000
committerBill Nottingham <notting@redhat.com>2004-04-16 07:45:46 +0000
commit0688f6ed2ede5ca3929eee2c0b9af3fab89782d1 (patch)
tree7026b783a728fe9bbbf486746b13f084673b14b1 /rc.d/rc.sysinit
parent4b413a547ba4303ee826b4da00e9e48b85daf637 (diff)
downloadinitscripts-0688f6ed2ede5ca3929eee2c0b9af3fab89782d1.tar
initscripts-0688f6ed2ede5ca3929eee2c0b9af3fab89782d1.tar.gz
initscripts-0688f6ed2ede5ca3929eee2c0b9af3fab89782d1.tar.bz2
initscripts-0688f6ed2ede5ca3929eee2c0b9af3fab89782d1.tar.xz
initscripts-0688f6ed2ede5ca3929eee2c0b9af3fab89782d1.zip
fix usb loading (#120911)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit7
1 files changed, 1 insertions, 6 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 717d1002..7300a7ad 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -194,20 +194,15 @@ fi
update_boot_stage RCusb
usb=0
if ! strstr "$cmdline" nousb && ! strstr "$cmdline" nomodules ; then
- if ! LC_ALL=C fgrep -q "usb" /proc/devices 2>/dev/null ; then
aliases=`/sbin/modprobe -c | awk '/^alias usb-controller/ { print $3 }'`
if [ -n "$aliases" -a "$aliases" != "off" ]; then
- modprobe usbcore
+ modprobe usbcore >/dev/null 2>&1
for alias in $aliases ; do
[ "$alias" = "off" ] && continue
action $"Initializing USB controller ($alias): " modprobe $alias
done
[ $? -eq 0 -a -n "$aliases" ] && usb=1
fi
- fi
- if LC_ALL=C fgrep -q "usb" /proc/devices 2>/dev/null ; then
- usb=1
- fi
fi
if [ $usb = 1 -a ! -f /proc/bus/usb/devices ]; then