summaryrefslogtreecommitdiff
path: root/audio/autocd/files/autocd.in
blob: 58ffe9a408817fa44adcbb3991c9793150a05647 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#

# PROVIDE: autocd
# REQUIRE: LOGIN
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable autocd:
#
# autocd_enable="YES"
#
# See autocd(8) for relevant values for autocd_flags
#

. /etc/rc.subr

name=autocd
rcvar=autocd_enable

command=%%PREFIX%%/sbin/autocd

stop_cmd=${name}_stop

autocd_stop ()
{
	%%PREFIX%%/bin/cdctl die
}

load_rc_config $name

autocd_enable=${autocd_enable-NO}

run_rc_command "$1"