mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-29 16:07:40 +01:00
15 lines
281 B
Plaintext
15 lines
281 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
|
|
/usr/bin/pulseaudio --system
|
|
fi
|
|
sleep 10
|
|
done
|