2000-03-10 14:53:23 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2000-04-09 03:02:53 +04:00
|
|
|
# $NetBSD: sysctl,v 1.2 2000/04/08 23:02:54 tsarna Exp $
|
2000-03-10 14:53:23 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: sysctl
|
2000-04-09 03:02:53 +04:00
|
|
|
# REQUIRE: root ipnat
|
2000-03-10 14:53:23 +03:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
. /etc/rc.conf
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
run_rc_command "$1"
|