2000-03-10 14:53:23 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2002-04-29 16:10:23 +04:00
|
|
|
# $NetBSD: sysctl,v 1.12 2002/04/29 12:10:23 lukem 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
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
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"
|