1 #!/bin/sh 2 # 3 # $NetBSD: local,v 1.4.4.1 2000/08/23 12:11:17 lukem Exp $ 4 # 5 6 # REQUIRE: DAEMON 7 # PROVIDE: local 8 # KEYWORD: shutdown 9 10 . /etc/rc.subr 11 12 name="local" 13 start_cmd="local_start" 14 stop_cmd="local_stop" 15 16 local_start() 17 { 18 if [ -f /etc/rc.local ]; then 19 . /etc/rc.local 20 fi 21 } 22 23 local_stop() 24 { 25 if [ -f /etc/rc.shutdown.local ]; then 26 . /etc/rc.shutdown.local 27 fi 28 } 29 30 load_rc_config $name 31 run_rc_command "$1" 32