2008-03-02 21:14:01 +00:00
|
|
|
#!@PREFIX@/sbin/runscript
|
2008-01-11 15:31:10 +00:00
|
|
|
# Copyright 2007-2008 Roy Marples <roy@marples.name>
|
|
|
|
# All rights reserved. Released under the 2-clause BSD license.
|
2007-11-20 12:10:32 +00:00
|
|
|
|
2008-01-11 12:13:46 +00:00
|
|
|
depend()
|
|
|
|
{
|
2007-11-20 12:10:32 +00:00
|
|
|
use hostname
|
|
|
|
before bootmisc logger
|
2008-03-28 19:05:26 +00:00
|
|
|
keyword noopenvz noprefix novserver
|
2007-11-20 12:10:32 +00:00
|
|
|
}
|
|
|
|
|
2008-03-25 14:35:52 +00:00
|
|
|
start()
|
|
|
|
{
|
|
|
|
[ -e /etc/sysctl.conf ] || return 0
|
|
|
|
ebegin "Configuring kernel parameters"
|
2008-03-26 09:36:34 +00:00
|
|
|
sysctl -p >/dev/null
|
2008-03-25 14:35:52 +00:00
|
|
|
eend $? "Some errors were encountered"
|
2007-11-20 12:10:32 +00:00
|
|
|
}
|