summaryrefslogtreecommitdiff
path: root/audio
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
parent- Use the vendor supplied man page which I missed. (diff)
Clean up the rc.d script as suggested by dougb
Submitted by: dougb via e-mail Approved by: maintainer (implicit), araujo (mentor)
Notes
Notes: svn path=/head/; revision=218142
Diffstat (limited to 'audio')
-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"