aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/single
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d/single')
-rwxr-xr-xrc.d/init.d/single2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/single b/rc.d/init.d/single
index 0bcb9dab..4bf94387 100755
--- a/rc.d/init.d/single
+++ b/rc.d/init.d/single
@@ -31,7 +31,7 @@ rm -f /var/lock/subsys/*
# make sure modprobe is working
if [ -f /proc/sys/kernel/modprobe ]; then
- echo "/sbin/modprobe" > /proc/sys/kernel/modprobe
+ sysctl -w kernel.modprobe="/sbin/modprobe" >/dev/null 2>&1
fi
# If they want to run something in single user mode, might as well run it...