/network/if-up.d/avahi-daemon

http://github.com/brinkman83/bashrc · Shell · 15 lines · 5 code · 3 blank · 7 comment · 4 complexity · bf5ca43523c466d84a4ad796f9c6fd74 MD5 · raw file

  1. #!/bin/sh
  2. # Don't run the avahi-daemon unicast local check while bringing up
  3. # the loopback device; it's not necessary until we bring up a real network
  4. # device
  5. [ "$IFACE" != "lo" ] || exit 0
  6. # Bail out if resolvconf is installed
  7. [ -x /sbin/resolvconf ] && exit 0
  8. # If we have an unicast .local domain, we immediately disable avahi to avoid
  9. # conflicts with the multicast IP4LL .local domain
  10. if [ -x /usr/lib/avahi/avahi-daemon-check-dns.sh ] ; then
  11. exec /usr/lib/avahi/avahi-daemon-check-dns.sh
  12. fi