2021-02-19 22:27:57 +01:00
|
|
|
--- avahi-daemon-check-dns.sh.debian 2021-01-27 15:28:07.832795734 -0600
|
|
|
|
+++ avahi-daemon-check-dns.sh 2021-01-27 15:39:35.364471899 -0600
|
2013-03-07 15:50:23 +01:00
|
|
|
@@ -5,15 +5,15 @@
|
|
|
|
|
|
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
|
|
|
|
|
|
|
-RUNDIR="/var/run/avahi-daemon/"
|
|
|
|
+RUNDIR="/var/run/avahi-daemon"
|
|
|
|
DISABLE_TAG="$RUNDIR/disabled-for-unicast-local"
|
|
|
|
NS_CACHE="$RUNDIR/checked_nameservers"
|
|
|
|
|
|
|
|
-AVAHI_DAEMON_DETECT_LOCAL=1
|
|
|
|
+AVAHI_DAEMON_DETECT_LOCAL=yes
|
|
|
|
|
|
|
|
-test -f /etc/default/avahi-daemon && . /etc/default/avahi-daemon
|
2021-02-19 22:27:57 +01:00
|
|
|
+test -f /etc/sysconfig/avahi && . /etc/sysconfig/avahi
|
2013-03-07 15:50:23 +01:00
|
|
|
|
|
|
|
-if [ "$AVAHI_DAEMON_DETECT_LOCAL" != "1" ]; then
|
|
|
|
+if [ "$AVAHI_DAEMON_DETECT_LOCAL" != "yes" ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2021-02-19 22:27:57 +01:00
|
|
|
--- avahi-daemon.if-up.debian 2021-01-27 16:09:50.922179542 -0600
|
|
|
|
+++ avahi-daemon.if-up 2021-01-27 16:11:54.942842665 -0600
|
|
|
|
@@ -3,10 +3,10 @@
|
2013-03-07 15:50:23 +01:00
|
|
|
# Don't run the avahi-daemon unicast local check while bringing up
|
|
|
|
# the loopback device; it's not necessary until we bring up a real network
|
|
|
|
# device
|
|
|
|
-[ "$IFACE" != "lo" ] || exit 0
|
|
|
|
+[ "$2" != "lo" ] || exit 0
|
|
|
|
|
|
|
|
# If we have an unicast .local domain, we immediately disable avahi to avoid
|
|
|
|
# conflicts with the multicast IP4LL .local domain
|
2021-02-19 22:27:57 +01:00
|
|
|
if [ -x /usr/lib/avahi/avahi-daemon-check-dns.sh ] ; then
|
|
|
|
- exec /usr/lib/avahi/avahi-daemon-check-dns.sh
|
|
|
|
+ sudo -u avahi -g avahi /usr/lib/avahi/avahi-daemon-check-dns.sh
|
|
|
|
fi
|