2007-11-20 12:10:32 +00:00
|
|
|
#!/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-01-11 12:13:46 +00:00
|
|
|
start()
|
|
|
|
{
|
2008-01-06 12:49:41 +00:00
|
|
|
[ "${RC_SYS}" = "VPS" ] && return 0
|
2007-11-20 12:10:32 +00:00
|
|
|
[ -e /etc/sysctl.conf ] || return 0
|
|
|
|
ebegin "Configuring kernel parameters"
|
|
|
|
sysctl -p /etc/sysctl.conf >/dev/null
|
|
|
|
eend $?
|
|
|
|
}
|