summaryrefslogtreecommitdiff
path: root/community/oss/rc-script
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-08-04 00:20:47 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-08-04 00:20:47 -0300
commit97a74a6a87ccbeb5649f226377d0c10ae824f1e1 (patch)
tree614d5483fcdab0aa6adecc7041c4b872ffb5a293 /community/oss/rc-script
parente8eefc5a3834440246552e54c169abfa0703672e (diff)
parent8c2359e2541f9d1b11443b49d8ea502b3ffea39c (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/unifdef/PKGBUILD extra/gtk2/PKGBUILD extra/libmpeg2/PKGBUILD extra/mesa/PKGBUILD multilib/lib32-libdrm/PKGBUILD multilib/lib32-libdrm/no-pthread-stubs.patch multilib/lib32-mesa/PKGBUILD
Diffstat (limited to 'community/oss/rc-script')
-rw-r--r--community/oss/rc-script30
1 files changed, 30 insertions, 0 deletions
diff --git a/community/oss/rc-script b/community/oss/rc-script
new file mode 100644
index 000000000..5c930107c
--- /dev/null
+++ b/community/oss/rc-script
@@ -0,0 +1,30 @@
+#!/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