aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scream/scream-alsa.initd
blob: 8cc9b4fdc72a4611b483a4767ad10bba9fa3c0cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/openrc-run

command="/usr/bin/scream-alsa"
command_background=true
pidfile="/run/${RC_SVCNAME}.pid"

command_args="-p ${SCREAM_PORT} -t ${SCREAM_LATENCY} -o ${SCREAM_DEVICE}"

if [ "${SCREAM_MULTICAST}" = "yes" ]; then
	command_args="${command_args} -g ${SCREAM_MULTICAST_GROUP}"
else
	command_args="${command_args} -u"
fi

if [ ! -z "${SCREAM_INTERFACE}" ]; then
	command_args="${command_args} -i ${SCREAM_INTERFACE}"
fi

depend() {
	need net alsa
}