summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/rplay/files/rplayd.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/audio/rplay/files/rplayd.sh b/audio/rplay/files/rplayd.sh
index e9095dd4e38..8c475ac53c3 100644
--- a/audio/rplay/files/rplayd.sh
+++ b/audio/rplay/files/rplayd.sh
@@ -1,11 +1,11 @@
#!/bin/sh
#
-# $NetBSD: rplayd.sh,v 1.2 2001/11/21 17:55:55 jlam Exp $
+# $NetBSD: rplayd.sh,v 1.3 2001/11/21 21:38:50 jlam Exp $
#
# PROVIDE: rplayd
# REQUIRE: DAEMON
-if [ -d /etc/rc.d -a -f /etc/rc.subr ]
+if [ -e /etc/rc.subr ]
then
. /etc/rc.subr
fi
@@ -15,11 +15,11 @@ rcvar=$name
command="@PREFIX@/sbin/${name}"
required_files="@CONFDIR@/rplay.conf"
-if [ ! -d /etc/rc.d ]
+if [ -e /etc/rc.subr ]
then
- @ECHO@ -n ' ${name}'
- ${command} ${rplayd_flags} ${command_args}
-else
load_rc_config $name
run_rc_command "$1"
+else
+ @ECHO@ -n ' ${name}'
+ ${command} ${rplayd_flags} ${command_args}
fi