diff options
Diffstat (limited to 'audio/autocd/files/autocd.in')
-rw-r--r-- | audio/autocd/files/autocd.in | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/audio/autocd/files/autocd.in b/audio/autocd/files/autocd.in new file mode 100644 index 00000000000..12dc07a1378 --- /dev/null +++ b/audio/autocd/files/autocd.in @@ -0,0 +1,38 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: autocd +# REQUIRE: +# BEFORE: +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable autocd: +# +#autocd_enable="YES" +# +# See autocd(8) for flags +# + +. %%RC_SUBR%% + +name=autocd +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/autocd + +stop_cmd=stop_cmd + +stop_cmd() +{ + %%PREFIX%%/bin/cdctl die +} + +load_rc_config $name + +# set defaults +autocd_flags=${autocd_flags-""} + +run_rc_command "$1" |