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 $
5 # $DragonFly: src/etc/rc.d/sysctl,v 1.5 2005/11/19 21:47:32 swildner Exp $
16 start_cmd
="DragonFly_start"
17 extra_commands
="reload lastload"
18 reload_cmd
="DragonFly_start"
19 lastload_cmd
="DragonFly_start last"
24 # Read in /etc/sysctl.conf and set things accordingly
26 if [ -f /etc
/sysctl.conf
]; then
27 while read var comments
36 if current_value
=`${SYSCTL} -n ${mib} 2>/dev/null`; then
37 case ${current_value} in
44 elif [ "$1" = "last" ]; then
45 warn
"sysctl ${mib} does not exist."
49 done < /etc
/sysctl.conf