Skip to contentSkip to conversation

package/busybox: fix avahi-autoipd error message

PATCH New Lukasz Tekieli 2 participants 3 messages Jul 23, 2020 – Sep 5, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/busybox: fix avahi-autoipd error message

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.

---
 package/busybox/udhcpc.script | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
package/busybox/udhcpc.script +3 -3
index 711963f974..0196351cd5 100755
@@ -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
Signature · 1 line
2.27.0
#1 lore raw

PATCH 1/1 package/busybox: fix avahi-autoipd error message

Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Lukasz" == Lukasz Tekieli <[email protected]> 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.

---
 package/busybox/udhcpc.script | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
package/busybox/udhcpc.script +0 -0
index 711963f974..0196351cd5 100755

package/busybox/udhcpc.script case "$1" in · line 45

Quoted 5 lines
package/busybox/udhcpc.script +1 -1
@@ -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.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 package/busybox: fix avahi-autoipd error message

Quoted 28 lines
Quoted 21 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

"Peter" == Peter Korsgaard <[email protected]> writes:

"Lukasz" == Lukasz Tekieli <[email protected]> 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.

---
package/busybox/udhcpc.script | 6 +++---

1 file changed, 3 insertions(+), 3 deletions(-)
package/busybox/udhcpc.script +0 -0
index 711963f974..0196351cd5 100755
@@ -42,19 +42,19 @@ case "$1" in

rm -f $TMPFILE

if [ -x /usr/sbin/avahi-autoipd ]; then

package/busybox/udhcpc.script

Quoted 2 lines
package/busybox/udhcpc.script +1 -1
-			/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.

Quoted 1 line

Committed, thanks.

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

Signature · 1 line
Bye, Peter Korsgaard