summaryrefslogtreecommitdiff
path: root/etc/rc.d/sysctl
blob: d34d3ef91b542b3bd85d98bcfcdc7f7215e7e49f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
#
# $NetBSD: sysctl,v 1.13 2004/08/13 18:08:03 mycroft Exp $
#

# PROVIDE: sysctl
# REQUIRE: root ipfilter ipsec
# BEFORE:  DAEMON

$_rc_subr_loaded . /etc/rc.subr

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
	fi
}

load_rc_config $name
run_rc_command "$1"