X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage5%2Fbootscripts%2Fpulseaudio;fp=stage5%2Fbootscripts%2Fpulseaudio;h=273b6a53321012e290e49f3c2b9431d03ca7f080;hb=3dae4c554ec18f465eb6ee5e6efdbdbe8557e13c;hp=0000000000000000000000000000000000000000;hpb=fb687a8c2dc6ac58f8be02dda9b3f04cc9d10f28;p=hvlinux.git diff --git a/stage5/bootscripts/pulseaudio b/stage5/bootscripts/pulseaudio new file mode 100755 index 0000000..273b6a5 --- /dev/null +++ b/stage5/bootscripts/pulseaudio @@ -0,0 +1,40 @@ +#!/bin/sh + +# fcron + +# Source functions library +source /etc/rc.d/init.d/functions + +log_script_name "$0 $*" + + +PULSE_SERVER="tcp:via:16002" +ESPEAKER="via:16001" + +# See how we were called. +case "$1" in + start) + cmd_run_log_box_warn "PulseAudio sound server start" loadproc pulseaudio + ;; + + stop) + cmd_run_log_box_warn "PulseAudio sound server stop" killproc pulseaudio + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc pulseaudio + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit ${EXIT_CODE_FAILURE} + ;; +esac + +exit $?