Files
hassio-addons/birdnet-pi/rootfs/custom-services.d/01-avahi.sh
2025-07-23 08:58:09 +00:00

14 lines
292 B
Bash
Executable File

#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# Waiting for dbus
until [[ -e /var/run/dbus/system_bus_socket ]]; do
sleep 1s
done
TZ_VALUE="$(timedatectl show -p Timezone --value)"
export TZ="$TZ_VALUE"
echo "Starting service: avahi daemon"
exec \
avahi-daemon --no-chroot