From 662e308d86d63750fc1d939e68c2b5ee88fea593 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 10 Apr 2007 10:50:07 +0000 Subject: [PATCH] Apply sysctl if we don't have an init script --- init.d/bootmisc | 6 ++++++ 1 file changed, 6 insertions(+) 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