3 # $NetBSD: sysctl,v 1.12 2002/04/29 12:10:23 lukem Exp $
4 # $FreeBSD: src/etc/rc.d/sysctl,v 1.12 2003/04/24 08:20:47 mtm Exp $
8 # REQUIRE: root modules
15 start_cmd="DragonFly_start"
16 extra_commands="reload lastload"
17 reload_cmd="DragonFly_start"
18 lastload_cmd="DragonFly_start last"
23 # Read in /etc/sysctl.conf and set things accordingly
25 if [ -f /etc/sysctl.conf ]; then
26 while read var comments
35 if current_value=`${SYSCTL_N} -q ${mib}`; then
36 case ${current_value} in
43 elif [ "$1" = "last" ]; then
44 warn "sysctl ${mib} does not exist."
48 done < /etc/sysctl.conf