X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-autoipd%2Favahi-autoipd.action;fp=avahi-autoipd%2Favahi-autoipd.action;h=ba041aa358ec4feff449bc3fc593e2e212dea523;hb=cf4e63caaef2289b9e6765357d51598d2c3ddcf6;hp=5efc255320908d9b07a27d454b1318e8f407c6e3;hpb=b6472516dc7738d9f11854313c763cebf2747986;p=catta diff --git a/avahi-autoipd/avahi-autoipd.action b/avahi-autoipd/avahi-autoipd.action index 5efc255..ba041aa 100755 --- a/avahi-autoipd/avahi-autoipd.action +++ b/avahi-autoipd/avahi-autoipd.action @@ -58,10 +58,17 @@ elif [ -x /bin/ifconfig -o -x /sbin/ifconfig ] ; then ifconfig "$2" inet "$3" netmask 255.255.0.0 broadcast 169.254.255.255 ;; - CONFLICT|UNBIND|STOP) + CONFLICT|STOP) ifconfig "$2" inet 0 ;; + UNBIND) + # This event is triggered when some other tool configured + # a routable address for this interface. That IP address + # probably overwrote ours, so let's not remove it again + # here. + ;; + *) echo "Unknown event $1" >&2 exit 1