aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-02-16 20:51:02 +0000
committerBill Nottingham <notting@redhat.com>2001-02-16 20:51:02 +0000
commit76eb3ecf9513485f250677cdcf98addaabeccf68 (patch)
tree1f33e27b23530e868e8f2279f6215b89b45927aa /rc.d/rc.sysinit
parentd62ddfd7777bb0e15c9a5841bd86c0df28026c60 (diff)
downloadinitscripts-76eb3ecf9513485f250677cdcf98addaabeccf68.tar
initscripts-76eb3ecf9513485f250677cdcf98addaabeccf68.tar.gz
initscripts-76eb3ecf9513485f250677cdcf98addaabeccf68.tar.bz2
initscripts-76eb3ecf9513485f250677cdcf98addaabeccf68.tar.xz
initscripts-76eb3ecf9513485f250677cdcf98addaabeccf68.zip
disable hotplug if 'nomodules' is specified
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit2
1 files changed, 2 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 1374e4b9..912db007 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -387,9 +387,11 @@ fi
if [ -f /proc/sys/kernel/modprobe ]; then
if [ -n "$USEMODULES" ]; then
sysctl -w kernel.modprobe="/sbin/modprobe" >/dev/null 2>&1
+ sysctl -w kernel.hotplug="/sbin/hotplug" >/dev/null 2>&1
else
# We used to set this to NULL, but that causes 'failed to exec' messages"
sysctl -w kernel.modprobe="/bin/true" >/dev/null 2>&1
+ sysctl -w kernel.hotplug="/bin/true" >/dev/null 2>&1
fi
fi