All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] avahi: udhcpc default.script: only bring up avahi-autoipd on nak/timeout
@ 2009-06-04 12:55 Peter Korsgaard
  0 siblings, 0 replies; only message in thread
From: Peter Korsgaard @ 2009-06-04 12:55 UTC (permalink / raw)
  To: buildroot

commit: http://git.buildroot.net/buildroot/commit/?id=871435fdb5019e34875e9b87c38e45a90f1af806
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master


The avahi udhcpc script used to start up avahi-autoipd at defconfig
(init) time, and then kill it if a dhcp lease was acquired, leading
to extra network traffic.

Change it to only start avahi-autoipd on timeout and dhcp nak.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 package/avahi/busybox-udhcpc-default.script |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/package/avahi/busybox-udhcpc-default.script b/package/avahi/busybox-udhcpc-default.script
index cc89feb..0bb3dea 100755
--- a/package/avahi/busybox-udhcpc-default.script
+++ b/package/avahi/busybox-udhcpc-default.script
@@ -19,6 +19,12 @@ case "$1" in
 			/sbin/ifconfig $interface 0.0.0.0
 		fi
 		if [ -x /usr/sbin/avahi-autoipd ]; then
+			/usr/sbin/avahi-autoipd -k $interface
+		fi
+		;;
+
+	leasefail|nak)
+		if [ -x /usr/sbin/avahi-autoipd ]; then
 			/usr/sbin/avahi-autoipd -wD $interface --no-chroot
 		fi
 		;;
-- 
1.6.0.6

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-04 12:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-04 12:55 [Buildroot] [git commit] avahi: udhcpc default.script: only bring up avahi-autoipd on nak/timeout Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.