NetBSD/etc/rc.d/sysctl

25 lines
339 B
Plaintext
Raw Normal View History

2000-03-10 14:53:23 +03:00
#!/bin/sh
#
# $NetBSD: sysctl,v 1.2 2000/04/08 23:02:54 tsarna Exp $
2000-03-10 14:53:23 +03:00
#
# PROVIDE: sysctl
# 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()
{
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"