diff options
author | Roy Marples <roy@marples.name> | 2007-04-10 10:50:07 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-04-10 10:50:07 +0000 |
commit | 662e308d86d63750fc1d939e68c2b5ee88fea593 (patch) | |
tree | 0f954c27a5add52462162018c850b58ddfabce40 /init.d/bootmisc | |
parent | 0c98067d57606c59866e9ff35f2a6aedaaedaf76 (diff) |
Apply sysctl if we don't have an init script
Diffstat (limited to 'init.d/bootmisc')
-rwxr-xr-x | init.d/bootmisc | 6 |
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 |