Apply sysctl if we don't have an init script

This commit is contained in:
Roy Marples 2007-04-10 10:50:07 +00:00
parent 0c98067d57
commit 662e308d86

View File

@ -18,6 +18,12 @@ start() {
cp /etc/nologin /etc/nologin.boot cp /etc/nologin /etc/nologin.boot
fi 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 if ! touch -c /var/run 2> /dev/null ; then
ewarn "Skipping /var and /tmp initialization (ro root?)" ewarn "Skipping /var and /tmp initialization (ro root?)"
return 0 return 0