3 # $NetBSD: sysctl,v 1.12 2002/04/29 12:10:23 lukem Exp $
15 start_cmd="sysctl_start"
16 reload_cmd="sysctl_start"
17 lastload_cmd="sysctl_start last"
18 extra_commands="reload lastload"
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 ${mib} 2>/dev/null`; then
36 case ${current_value} in
43 elif [ "$1" = "last" ]; then
44 warn "sysctl ${mib} does not exist."
48 done < /etc/sysctl.conf