xref: /netbsd/etc/rc.d/local (revision bf9ec67e)
1#!/bin/sh
2#
3# $NetBSD: local,v 1.6 2002/03/22 04:33:59 thorpej Exp $
4#
5
6# REQUIRE: DAEMON
7# PROVIDE: local
8# BEFORE:  LOGIN
9# KEYWORD: shutdown
10
11. /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