mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-10 08:29:58 +02:00
17 lines
349 B
Plaintext
17 lines
349 B
Plaintext
#!/usr/bin/with-contenv bashio
|
|
#Disable pulseaudio as managed by HA
|
|
echo "Starting service: livestream"
|
|
until [[ -e /start ]]; do
|
|
sleep 1s
|
|
done
|
|
|
|
echo "Starting service: pulseaudio"
|
|
while :
|
|
do
|
|
if [[ ! $(/usr/bin/pulseaudio --check) ]]; then
|
|
exec \
|
|
s6-setuidgid "$USER" /usr/bin/pulseaudio --start
|
|
fi
|
|
sleep 10
|
|
done
|