summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/oss/oss.rc
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-02-18 04:41:17 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-02-18 04:41:17 (GMT)
commit320944f9a403da05a05bb175945097f12a54a53b (patch)
tree26a847c254c7657dd9a714756430d70011666563 /abs/extra-testing/oss/oss.rc
parent52e7c7e6d99e3d515936d9c51f9fbe65179e5153 (diff)
downloadlinhes_pkgbuild-320944f9a403da05a05bb175945097f12a54a53b.zip
linhes_pkgbuild-320944f9a403da05a05bb175945097f12a54a53b.tar.gz
linhes_pkgbuild-320944f9a403da05a05bb175945097f12a54a53b.tar.bz2
OSS for 2.6.28
Diffstat (limited to 'abs/extra-testing/oss/oss.rc')
-rw-r--r--abs/extra-testing/oss/oss.rc32
1 files changed, 32 insertions, 0 deletions
diff --git a/abs/extra-testing/oss/oss.rc b/abs/extra-testing/oss/oss.rc
new file mode 100644
index 0000000..3f63378
--- /dev/null
+++ b/abs/extra-testing/oss/oss.rc
@@ -0,0 +1,32 @@
+#!/bin/bash
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+case "$1" in
+ start)
+ stat_busy 'Starting Open Sound System'
+ if /usr/sbin/soundon
+ then
+ add_daemon oss
+ stat_done
+ else
+ stat_fail
+ fi
+ ;;
+ stop)
+ stat_busy 'Stopping Open Sound System'
+ if /usr/sbin/soundoff
+ then
+ rm_daemon oss
+ stat_done
+ else
+ stat_fail
+ fi
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart}"
+esac