aboutsummaryrefslogtreecommitdiff
path: root/audio/autocd
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2008-08-06 14:31:59 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2008-08-06 14:31:59 +0000
commit24785674ce3ca1a1411a95845de47b8711a10796 (patch)
tree52157fa9f1834984a38224f2530c92dd32318d35 /audio/autocd
parent56fbba99aadb4c69d7dc972908304749fb8188c0 (diff)
downloadports-24785674ce3ca1a1411a95845de47b8711a10796.tar.gz
ports-24785674ce3ca1a1411a95845de47b8711a10796.zip
Notes
Diffstat (limited to 'audio/autocd')
-rw-r--r--audio/autocd/files/autocd.in18
1 files changed, 8 insertions, 10 deletions
diff --git a/audio/autocd/files/autocd.in b/audio/autocd/files/autocd.in
index 12dc07a13784..653057eeb831 100644
--- a/audio/autocd/files/autocd.in
+++ b/audio/autocd/files/autocd.in
@@ -4,35 +4,33 @@
#
# PROVIDE: autocd
-# REQUIRE:
-# BEFORE:
+# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable autocd:
#
-#autocd_enable="YES"
+# autocd_enable="YES"
#
-# See autocd(8) for flags
+# See autocd(8) for relevant values for autocd_flags
#
. %%RC_SUBR%%
name=autocd
-rcvar=`set_rcvar`
+rcvar=${name}_enable
command=%%PREFIX%%/sbin/autocd
-stop_cmd=stop_cmd
+stop_cmd=${name}_stop
-stop_cmd()
+autocd_stop ()
{
- %%PREFIX%%/bin/cdctl die
+ %%PREFIX%%/bin/cdctl die
}
load_rc_config $name
-# set defaults
-autocd_flags=${autocd_flags-""}
+autocd_enable=${autocd_enable-NO}
run_rc_command "$1"