Files
homeassistant-addons/cups/rootfs/etc/services.d/avahi/run
2023-06-09 23:46:22 +02:00

10 lines
301 B
Bash

#!/bin/sh
ulimit -n 1048576
# Wait until D-Bus is up and the init script has mapped in the external hostname
until [ -e /var/run/dbus/system_bus_socket ] && [ -e /var/run/avahi_configured ]; do
sleep 1s
done
avahi-daemon 2>&1 | mawk -W interactive '{printf "%c[34m[avahi]%c[0m %s\n", 27, 27, $0}'