aboutsummaryrefslogtreecommitdiff
path: root/init.d/bootmisc
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-10 10:50:07 +0000
committerRoy Marples <roy@marples.name>2007-04-10 10:50:07 +0000
commit662e308d86d63750fc1d939e68c2b5ee88fea593 (patch)
tree0f954c27a5add52462162018c850b58ddfabce40 /init.d/bootmisc
parent0c98067d57606c59866e9ff35f2a6aedaaedaf76 (diff)
Apply sysctl if we don't have an init script
Diffstat (limited to 'init.d/bootmisc')
-rwxr-xr-xinit.d/bootmisc6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.d/bootmisc b/init.d/bootmisc
index 112dfca4..c00407f0 100755
--- a/init.d/bootmisc
+++ b/init.d/bootmisc
@@ -18,6 +18,12 @@ start() {
cp /etc/nologin /etc/nologin.boot
fi
+ if [ -e /etc/sysctl.conf -a ! -x /etc/init.d/sysctl ] ; then
+ ebegin "Configuring kernel parameters"
+ sysctl -q -p /etc/sysctl.conf
+ eend $?
+ fi
+
if ! touch -c /var/run 2> /dev/null ; then
ewarn "Skipping /var and /tmp initialization (ro root?)"
return 0