diff options
author | Dugan Chen <dugan [underscore] c [at] fastmail [dot] fm> | 2010-05-14 23:31:50 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2010-05-14 23:31:50 +0200 |
commit | b66a27946bea58639bb9d7c62ec6f916e1f5a5a3 (patch) | |
tree | 4e7c8d2953df4550ad4f642fce0dd0321296a495 /system/oss/rc.oss | |
parent | fd27b599598e6dd5ff4050b3447b27cf3ac526e2 (diff) |
system/oss: Added. (an ALSA alternative)
The Open Sound System is a set of sound drivers that serve as
an alternative to the usual ALSA architecture.
Diffstat (limited to 'system/oss/rc.oss')
-rw-r--r-- | system/oss/rc.oss | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/system/oss/rc.oss b/system/oss/rc.oss new file mode 100644 index 000000000000..a8084594fa30 --- /dev/null +++ b/system/oss/rc.oss @@ -0,0 +1,39 @@ +#!/bin/sh +# Start/stop/restart OSS: + +# Credit to Tsomi, on the 4Front Technologies forum: +# http://www.opensound.com/board2006/viewtopic.php?p=8174 + +oss_start() { + echo "Starting OSS..." + if [ -x /usr/sbin/soundon ]; then + /usr/sbin/soundon + else + echo "No /usr/sbin/soundon script found." + exit 1 + fi +} + +oss_stop() { + echo "Stopping OSS..." + /usr/sbin/soundoff +} + +# See how we were called. +case "$1" in + start) + oss_start + ;; + stop) + oss_stop + ;; + restart) + oss_stop + sleep 1 + oss_start + ;; + *) + echo "Usage: $0 {start|stop|restart}" + ;; +esac + |