kumquat-buildroot/package/multimedia/pulseaudio/S50pulseaudio
Jeremy Rosen d26b5a26b9 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>
2013-05-04 17:16:20 +02:00

40 lines
397 B
Bash
Executable File

#!/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 $?