summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-09-03 17:26:57 +0000
committerLennart Poettering <lennart@poettering.net>2006-09-03 17:26:57 +0000
commitcf4e63caaef2289b9e6765357d51598d2c3ddcf6 (patch)
treee47ae40217b111303d0d95c089637c8ac6a43c9f
parentb6472516dc7738d9f11854313c763cebf2747986 (diff)
do not remove the interface address if an UNBIND event is recieved. This might accidently remove a manually configured address, hence better don't touch it.
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1317 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rwxr-xr-xavahi-autoipd/avahi-autoipd.action9
1 files changed, 8 insertions, 1 deletions
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