Home | History | Annotate | Line # | Download | only in rc.d
      1 #!/bin/sh
      2 #
      3 # $NetBSD: sysctl,v 1.14 2021/06/13 10:14:40 mlelstv Exp $
      4 #
      5 
      6 # PROVIDE: sysctl
      7 # REQUIRE: root
      8 # BEFORE:  DISKS
      9 
     10 $_rc_subr_loaded . /etc/rc.subr
     11 
     12 name="sysctl"
     13 start_cmd="sysctl_start"
     14 stop_cmd=":"
     15 
     16 sysctl_start()
     17 {
     18 	if [ -r /etc/sysctl.conf ]; then
     19 		echo "Setting sysctl variables:"
     20 		sysctl -f /etc/sysctl.conf
     21 	fi
     22 }
     23 
     24 load_rc_config $name
     25 run_rc_command "$1"
     26