aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-08-18 21:33:17 +0000
committerBill Nottingham <notting@redhat.com>2000-08-18 21:33:17 +0000
commit3b70c6830d18f0433ab1f56648c8677721cbb9bd (patch)
tree8ac8ba16f91a3c9e38b17a63c668397409300da7
parentb2a4224807eb215373ad493fa3a055c8493d12d9 (diff)
downloadinitscripts-3b70c6830d18f0433ab1f56648c8677721cbb9bd.tar
initscripts-3b70c6830d18f0433ab1f56648c8677721cbb9bd.tar.gz
initscripts-3b70c6830d18f0433ab1f56648c8677721cbb9bd.tar.bz2
initscripts-3b70c6830d18f0433ab1f56648c8677721cbb9bd.tar.xz
initscripts-3b70c6830d18f0433ab1f56648c8677721cbb9bd.zip
don't load usb drivers if they're compiled in
-rwxr-xr-xrc.d/rc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 25d141dc..7df4f524 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -156,7 +156,7 @@ fi
# Initialize USB controller and HID devices
usb=0
-if ! grep -iq "nousb" /proc/cmdline 2>/dev/null ; then
+if ! grep -iq "nousb" /proc/cmdline 2>/dev/null && ! grep -q "usb" /proc/devices 2>/dev/null ; then
alias=`egrep -s "^alias[[:space:]]+usb-controller[[:space:]]+" /etc/modules.conf | awk '{ print $3 }'`
if [ -n "$alias" -a "$alias" != "off" ] ; then
action "Initializing USB controller ($alias): " modprobe $alias