aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-26 14:17:15 +0000
committerRoy Marples <roy@marples.name>2007-04-26 14:17:15 +0000
commit67bfa29457eb06b80eb9e1c41075e0fed3d26f74 (patch)
tree50caabaf975585b883047ca82950d269596a1805
parent54c6ff1b0a8e50ee0246ca4f82a7713a182e328d (diff)
Don't sysctl for VPS systems
-rwxr-xr-xinit.d/bootmisc8
1 files changed, 5 insertions, 3 deletions
diff --git a/init.d/bootmisc b/init.d/bootmisc
index c00407f0..b9c91385 100755
--- a/init.d/bootmisc
+++ b/init.d/bootmisc
@@ -19,9 +19,11 @@ start() {
fi
if [ -e /etc/sysctl.conf -a ! -x /etc/init.d/sysctl ] ; then
- ebegin "Configuring kernel parameters"
- sysctl -q -p /etc/sysctl.conf
- eend $?
+ if [ "${RC_SYS}" != "VPS" ] ; then
+ ebegin "Configuring kernel parameters"
+ sysctl -q -p /etc/sysctl.conf
+ eend $?
+ fi
fi
if ! touch -c /var/run 2> /dev/null ; then