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