2000-03-10 14:53:23 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2004-08-13 22:08:03 +04:00
|
|
|
# $NetBSD: sysctl,v 1.13 2004/08/13 18:08:03 mycroft Exp $
|
2000-03-10 14:53:23 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: sysctl
|
2000-08-22 03:31:24 +04:00
|
|
|
# REQUIRE: root ipfilter ipsec
|
2002-03-22 07:33:57 +03:00
|
|
|
# BEFORE: DAEMON
|
2000-03-10 14:53:23 +03:00
|
|
|
|
2004-08-13 22:08:03 +04:00
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
2000-03-10 14:53:23 +03:00
|
|
|
|
|
|
|
name="sysctl"
|
|
|
|
start_cmd="sysctl_start"
|
|
|
|
stop_cmd=":"
|
|
|
|
|
|
|
|
sysctl_start()
|
|
|
|
{
|
2000-04-09 03:02:53 +04:00
|
|
|
if [ -r /etc/sysctl.conf ]; then
|
|
|
|
echo "Setting sysctl variables:"
|
|
|
|
sysctl -f /etc/sysctl.conf
|
2000-03-10 14:53:23 +03:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2000-05-13 12:45:06 +04:00
|
|
|
load_rc_config $name
|
2000-03-10 14:53:23 +03:00
|
|
|
run_rc_command "$1"
|