Apply sysctl if we don't have an init script
This commit is contained in:
parent
0c98067d57
commit
662e308d86
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user