sysctl revision 1.10
1#!/bin/sh 2# 3# $NetBSD: sysctl,v 1.10 2002/03/22 04:34:00 thorpej Exp $ 4# 5 6# PROVIDE: sysctl 7# REQUIRE: root ipfilter ipsec 8# BEFORE: DAEMON 9 10. /etc/rc.subr 11 12name="sysctl" 13start_cmd="sysctl_start" 14stop_cmd=":" 15 16sysctl_start() 17{ 18 if [ -n "$defcorename" ]; then 19 cat <<__EOF__ 20*** WARNING: /etc/rc.conf \$defcorename setting is obsolete. Please 21*** set kern.defcorename in /etc/sysctl.conf 22__EOF__ 23 sysctl -w kern.defcorename=$defcorename 24 fi 25 26 if [ -n "$nfsiod_flags" ]; then 27 cat <<__EOF__ 28*** WARNING: /etc/rc.conf \$nfsiod_flags setting is obsolete. Please 29*** remove it. If it was set to other than the default of "-n 4", then 30*** set vfs.nfs.iothreads in /etc/sysctl.conf 31__EOF__ 32 fi 33 34 if [ -r /etc/sysctl.conf ]; then 35 echo "Setting sysctl variables:" 36 sysctl -f /etc/sysctl.conf 37 fi 38} 39 40load_rc_config $name 41run_rc_command "$1" 42