All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/busybox: fix avahi-autoipd error message
@ 2020-07-23 17:19 Lukasz Tekieli
  2020-08-31 20:05 ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Lukasz Tekieli @ 2020-07-23 17:19 UTC (permalink / raw)
  To: buildroot

When using a combination of udhcpc and avahi-autoipd in case of receiving IP
from a DHCP server, the following message can be seen:
"Failed to kill daemon: No such file or directory".
Add a check for a running avahi-autoipd to fix this issue.

Signed-off-by: Lukasz Tekieli <tekieli.lukasz@gmail.com>
---
 package/busybox/udhcpc.script | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/busybox/udhcpc.script b/package/busybox/udhcpc.script
index 711963f974..0196351cd5 100755
--- a/package/busybox/udhcpc.script
+++ b/package/busybox/udhcpc.script
@@ -42,19 +42,19 @@ case "$1" in
 		rm -f $TMPFILE
 
 		if [ -x /usr/sbin/avahi-autoipd ]; then
-			/usr/sbin/avahi-autoipd -k $interface
+			/usr/sbin/avahi-autoipd -c $interface && /usr/sbin/avahi-autoipd -k $interface
 		fi
 		;;
 
 	leasefail|nak)
 		if [ -x /usr/sbin/avahi-autoipd ]; then
-			/usr/sbin/avahi-autoipd -wD $interface --no-chroot
+			/usr/sbin/avahi-autoipd -c $interface || /usr/sbin/avahi-autoipd -wD $interface --no-chroot
 		fi
 		;;
 
 	renew|bound)
 		if [ -x /usr/sbin/avahi-autoipd ]; then
-			/usr/sbin/avahi-autoipd -k $interface
+			/usr/sbin/avahi-autoipd -c $interface && /usr/sbin/avahi-autoipd -k $interface
 		fi
 		/sbin/ifconfig $interface $ip $BROADCAST $NETMASK
 		if [ -n "$ipv6" ] ; then
-- 
2.27.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/busybox: fix avahi-autoipd error message
  2020-07-23 17:19 [Buildroot] [PATCH 1/1] package/busybox: fix avahi-autoipd error message Lukasz Tekieli
@ 2020-08-31 20:05 ` Peter Korsgaard
  2020-09-05  7:41   ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2020-08-31 20:05 UTC (permalink / raw)
  To: buildroot

>>>>> "Lukasz" == Lukasz Tekieli <tekieli.lukasz@gmail.com> writes:

 > When using a combination of udhcpc and avahi-autoipd in case of receiving IP
 > from a DHCP server, the following message can be seen:
 > "Failed to kill daemon: No such file or directory".
 > Add a check for a running avahi-autoipd to fix this issue.

 > Signed-off-by: Lukasz Tekieli <tekieli.lukasz@gmail.com>
 > ---
 >  package/busybox/udhcpc.script | 6 +++---
 >  1 file changed, 3 insertions(+), 3 deletions(-)

 > diff --git a/package/busybox/udhcpc.script b/package/busybox/udhcpc.script
 > index 711963f974..0196351cd5 100755
 > --- a/package/busybox/udhcpc.script
 > +++ b/package/busybox/udhcpc.script
 > @@ -42,19 +42,19 @@ case "$1" in
 >  		rm -f $TMPFILE
 
 >  		if [ -x /usr/sbin/avahi-autoipd ]; then
 > -			/usr/sbin/avahi-autoipd -k $interface
 > +			/usr/sbin/avahi-autoipd -c $interface && /usr/sbin/avahi-autoipd -k $interface

Longer term this should really move to an
/usr/share/udhcpc/default.script.d/avahi-autoipd file, but OK - That can
be done later.

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/busybox: fix avahi-autoipd error message
  2020-08-31 20:05 ` Peter Korsgaard
@ 2020-09-05  7:41   ` Peter Korsgaard
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2020-09-05  7:41 UTC (permalink / raw)
  To: buildroot

>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:

>>>>> "Lukasz" == Lukasz Tekieli <tekieli.lukasz@gmail.com> writes:
 >> When using a combination of udhcpc and avahi-autoipd in case of receiving IP
 >> from a DHCP server, the following message can be seen:
 >> "Failed to kill daemon: No such file or directory".
 >> Add a check for a running avahi-autoipd to fix this issue.

 >> Signed-off-by: Lukasz Tekieli <tekieli.lukasz@gmail.com>
 >> ---
 >> package/busybox/udhcpc.script | 6 +++---
 >> 1 file changed, 3 insertions(+), 3 deletions(-)

 >> diff --git a/package/busybox/udhcpc.script b/package/busybox/udhcpc.script
 >> index 711963f974..0196351cd5 100755
 >> --- a/package/busybox/udhcpc.script
 >> +++ b/package/busybox/udhcpc.script
 >> @@ -42,19 +42,19 @@ case "$1" in
 >> rm -f $TMPFILE
 
 >> if [ -x /usr/sbin/avahi-autoipd ]; then
 >> -			/usr/sbin/avahi-autoipd -k $interface
 >> +			/usr/sbin/avahi-autoipd -c $interface && /usr/sbin/avahi-autoipd -k $interface

 > Longer term this should really move to an
 > /usr/share/udhcpc/default.script.d/avahi-autoipd file, but OK - That can
 > be done later.

 > Committed, thanks.

Committed to 2020.02.x and 2020.05.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-05  7:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-23 17:19 [Buildroot] [PATCH 1/1] package/busybox: fix avahi-autoipd error message Lukasz Tekieli
2020-08-31 20:05 ` Peter Korsgaard
2020-09-05  7:41   ` 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.