]> git.meshlink.io Git - catta/commitdiff
do not remove the interface address if an UNBIND event is recieved. This might accide...
authorLennart Poettering <lennart@poettering.net>
Sun, 3 Sep 2006 17:26:57 +0000 (17:26 +0000)
committerLennart Poettering <lennart@poettering.net>
Sun, 3 Sep 2006 17:26:57 +0000 (17:26 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1317 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-autoipd/avahi-autoipd.action

index 5efc255320908d9b07a27d454b1318e8f407c6e3..ba041aa358ec4feff449bc3fc593e2e212dea523 100755 (executable)
@@ -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