aboutsummaryrefslogtreecommitdiffstats
path: root/audio/autocd
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2008-08-06 22:31:59 +0800
committerpgollucci <pgollucci@FreeBSD.org>2008-08-06 22:31:59 +0800
commit52b80fc0b78792a14edd36c13da73ea5df001598 (patch)
treeb5cd35e3f62894559cbbf1d7e6776017b7ee083c /audio/autocd
parentffb9892453a56b297cae14d5ec5e69702155d60d (diff)
downloadfreebsd-ports-gnome-52b80fc0b78792a14edd36c13da73ea5df001598.tar.gz
freebsd-ports-gnome-52b80fc0b78792a14edd36c13da73ea5df001598.tar.zst
freebsd-ports-gnome-52b80fc0b78792a14edd36c13da73ea5df001598.zip
Clean up the rc.d script as suggested by dougb
Submitted by: dougb via e-mail Approved by: maintainer (implicit), araujo (mentor)
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"