summaryrefslogtreecommitdiff
path: root/audio/oss
diff options
context:
space:
mode:
authorjlam <jlam>2002-10-02 20:46:46 +0000
committerjlam <jlam>2002-10-02 20:46:46 +0000
commita4a7e5b91eb7f0ccfe4cad7d04a007f18a2d2a26 (patch)
tree2a92a1e4f3bf3e4a07477786d83597f23f871105 /audio/oss
parent12d9f3098bb5b4e9fd88fb2fcec3aeca4915315b (diff)
downloadpkgsrc-a4a7e5b91eb7f0ccfe4cad7d04a007f18a2d2a26.tar.gz
Make this script more verbose when starting/stopping OSS.
Diffstat (limited to 'audio/oss')
-rw-r--r--audio/oss/files/oss.sh24
1 files changed, 20 insertions, 4 deletions
diff --git a/audio/oss/files/oss.sh b/audio/oss/files/oss.sh
index 9218ce76079..31ae0be8218 100644
--- a/audio/oss/files/oss.sh
+++ b/audio/oss/files/oss.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: oss.sh,v 1.1.1.1 2002/10/02 20:33:31 jlam Exp $
+# $NetBSD: oss.sh,v 1.2 2002/10/02 20:46:46 jlam Exp $
#
# PROVIDE: oss
# REQUIRE: aftermountlkm
@@ -13,8 +13,25 @@ fi
name="oss"
rcvar=$name
required_files="/etc/oss.conf"
-start_cmd="@PREFIX@/bin/soundon"
-stop_cmd="@PREFIX@/bin/soundoff"
+start_cmd="oss_start"
+stop_cmd="oss_stop"
+
+oss_start()
+{
+ if [ -x @PREFIX@/bin/soundon ]; then
+ @ECHO@ "Starting ${name}."
+ @PREFIX@/bin/soundon
+ fi
+}
+
+oss_stop()
+{
+ if [ -x @PREFIX@/bin/soundoff ]; then
+ @ECHO@ "Stopping ${name}."
+ @PREFIX@/bin/soundoff
+ fi
+}
+
if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
then
@@ -23,4 +40,3 @@ then
else
$start_cmd
fi
-