1#!/bin/sh
2#
3# $FreeBSD$
4#
5
6# PROVIDE: local
7# REQUIRE: DAEMON
8# BEFORE:  LOGIN
9# KEYWORD: shutdown
10
11. /etc/rc.subr
12
13name="local"
14desc="Run /etc/rc.local and /etc/shutdown.local"
15start_cmd="local_start"
16stop_cmd="local_stop"
17
18local_start()
19{
20	if [ -f /etc/rc.local ]; then
21		echo -n 'Starting local daemons:'
22		. /etc/rc.local
23		echo '.'
24	fi
25}
26
27local_stop()
28{
29	if [ -f /etc/rc.shutdown.local ]; then
30		echo -n 'Shutting down local daemons:'
31		. /etc/rc.shutdown.local
32		echo '.'
33	fi
34}
35
36load_rc_config $name
37run_rc_command "$1"
38