diff options
author | Michael Lauer <mickey@vanille-media.de> | 2007-09-16 11:38:08 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2007-09-16 11:38:08 +0000 |
commit | fb6e3edbda09c9057ca184c55077a46e20f75cd0 (patch) | |
tree | 5e5ca90769ced1d5f514ee009d4812c0f691e9fd /packages/openmoko2/openmoko-sound-system2/pulseaudio | |
parent | ebbb3467b70bb21b005d1ae67ba0ed0e00a04b28 (diff) |
add openmoko-sound-system2
Diffstat (limited to 'packages/openmoko2/openmoko-sound-system2/pulseaudio')
-rwxr-xr-x | packages/openmoko2/openmoko-sound-system2/pulseaudio | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/packages/openmoko2/openmoko-sound-system2/pulseaudio b/packages/openmoko2/openmoko-sound-system2/pulseaudio new file mode 100755 index 0000000000..76daacd3ae --- /dev/null +++ b/packages/openmoko2/openmoko-sound-system2/pulseaudio @@ -0,0 +1,46 @@ +#!/bin/sh +# +# pulseaudio This shell script starts and stops pulseaudio. +# +# chkconfig: 345 90 40 +# description: Pulseaudio manages the sound input/output +# processname: pulseaudio + +# Source function library. +#. /etc/rc.d/init.d/functions + +RETVAL=0 +prog="pulseaudio" + +start() { + echo -n "Starting the audio server..." + # FIXME once alsa/shm permissions have been fixed, supply --system + pulseaudio --resample-method=trivial -D -nF /etc/pulse/session + echo $prog +} + +stop() { + # Stop daemons. + echo -n "Shutting down $prog: " + killall pulseaudio + echo "done" +} + +# See how we were called. +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart|reload) + stop + start + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 +esac + +exit $RETVAL |