aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/rc.sysinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 2cb861ca..9899ab75 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -174,7 +174,7 @@ fi
# Initialize USB controller and HID devices
update_boot_stage RCusb
usb=0
-if ! strstr "$cmdline" nousb ; then
+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
@@ -708,7 +708,7 @@ if [ -n "$needusbstorage" ]; then
fi
# Ooh, firewire too.
-if ! strstr "$cmdline" nofirewire ; then
+if ! strstr "$cmdline" nofirewire && ! strstr "$cmdline" nomodules ; then
aliases=`/sbin/modprobe -c | awk '/^alias ieee1394-controller/ { print $3 }'`
if [ -n "$aliases" -a "$aliases" != "off" ]; then
for alias in $aliases ; do