diff options
author | Jeremy Rosen <jeremy.rosen@openwide.fr> | 2013-05-03 02:35:22 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-05-04 17:16:20 +0200 |
commit | d26b5a26b9cb8179df76c930130a165f4cc188b6 (patch) | |
tree | ceb5b645e9a6554e16662c35579f9242d6c6ecc7 /package/multimedia/pulseaudio/S50pulseaudio | |
parent | e5627bd798a2291f36326558d7cbe1e8f6bb01e1 (diff) | |
download | buildroot-novena-d26b5a26b9cb8179df76c930130a165f4cc188b6.tar.gz buildroot-novena-d26b5a26b9cb8179df76c930130a165f4cc188b6.zip |
add daemon mode support to pulseaudio
pulseaudio documentation recommends not using the daemon mode unless you
are on a headless system, but since that is the common case for a
buildroot installation, install the related user and groups
[Peter: fix typos, ifeq check, unconditionally install into target]
Signed-off-by: Jérémy Rosen <jeremy.rosen@openwide.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/multimedia/pulseaudio/S50pulseaudio')
-rwxr-xr-x | package/multimedia/pulseaudio/S50pulseaudio | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/package/multimedia/pulseaudio/S50pulseaudio b/package/multimedia/pulseaudio/S50pulseaudio new file mode 100755 index 000000000..4c6877eb1 --- /dev/null +++ b/package/multimedia/pulseaudio/S50pulseaudio @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Starts pulseaudio. +# + + +start() { + echo -n "Starting pulseaudio: " + umask 077 + /usr/bin/pulseaudio --system --daemonize + echo "OK" +} +stop() { + echo -n "Stopping pulseaudio: " + pulseaudio --kill + echo "OK" +} +restart() { + stop + start +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart|reload) + restart + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 +esac + +exit $? + |