aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/single
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-12-28 06:11:06 +0000
committerBill Nottingham <notting@redhat.com>1999-12-28 06:11:06 +0000
commit7d302ba296c897e3770de1ee968ab9eb4c963491 (patch)
treef23633a04f84a8876e7a1a4961d628a995c69be2 /rc.d/init.d/single
parentd65f430d850549092ca90e784e753a3f76227c69 (diff)
downloadinitscripts-7d302ba296c897e3770de1ee968ab9eb4c963491.tar
initscripts-7d302ba296c897e3770de1ee968ab9eb4c963491.tar.gz
initscripts-7d302ba296c897e3770de1ee968ab9eb4c963491.tar.bz2
initscripts-7d302ba296c897e3770de1ee968ab9eb4c963491.tar.xz
initscripts-7d302ba296c897e3770de1ee968ab9eb4c963491.zip
switch from echoing values into /proc/sys to using sysctl
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...