diff options
author | jlam <jlam@pkgsrc.org> | 2002-10-02 20:46:46 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-10-02 20:46:46 +0000 |
commit | 577ab113e00a2faaeed7d525abda7f600e16650f (patch) | |
tree | 2a92a1e4f3bf3e4a07477786d83597f23f871105 /audio | |
parent | d2a8af248dff0897c5e821bc51cf50612aaf205a (diff) | |
download | pkgsrc-577ab113e00a2faaeed7d525abda7f600e16650f.tar.gz |
Make this script more verbose when starting/stopping OSS.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/oss/files/oss.sh | 24 |
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 - |