mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-25 14:06:28 +01:00
16 lines
320 B
Plaintext
16 lines
320 B
Plaintext
#!/usr/bin/with-contenv bashio
|
|
# Waiting for dbus
|
|
until [[ -e /var/run/dbus/system_bus_socket ]]; 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
|