Skip to contentSkip to conversation

package/ifupdown-scripts: send udhcpc to background in case lease is not obtained

PATCH In review Peter Seiderer 3 participants 3 messages Feb 16, 2021 – Aug 1, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ifupdown-scripts: send udhcpc to background in case lease is not obtained

- Add the 'udhcpc_opts -b' option to /etc/network/interfaces for the system dhcp configured interface. With this option ('-b: background if lease is not obtained') the udhcpc keeps running in case the initial dhcp requests are not answered immediately.

---
 package/ifupdown-scripts/ifupdown-scripts.mk | 1 +
 1 file changed, 1 insertion(+)
package/ifupdown-scripts/ifupdown-scripts.mk +1 -0
index 5ef032142c..d3135b18b6 100644
@@ -28,6 +28,7 @@ define IFUPDOWN_SCRIPTS_DHCP
 		echo "  pre-up /etc/network/nfs_check"; \
 		echo "  wait-delay 15"; \
 		echo "  hostname \$$(hostname)"; \
+		echo "  udhcpc_opts -b"; \
 	) >> $(TARGET_DIR)/etc/network/interfaces
 endef
 define IFUPDOWN_SCRIPTS_DHCP_OPENRC
Signature · 1 line
2.30.0
#1 lore raw

PATCH 1/1 package/ifupdown-scripts: send udhcpc to background in case lease is not obtained

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

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

- Add the 'udhcpc_opts -b' option to /etc/network/interfaces for the system dhcp configured interface. With this option ('-b: background if lease is not obtained') the udhcpc keeps running in case the initial dhcp requests are not answered immediately.

---
 package/ifupdown-scripts/ifupdown-scripts.mk | 1 +
 1 file changed, 1 insertion(+)
package/ifupdown-scripts/ifupdown-scripts.mk +0 -0
index 5ef032142c..d3135b18b6 100644

package/ifupdown-scripts/ifupdown-scripts.mk define IFUPDOWN_SCRIPTS_DHCP · line 31

Quoted 4 lines
package/ifupdown-scripts/ifupdown-scripts.mk +1 -0
@@ -28,6 +28,7 @@ define IFUPDOWN_SCRIPTS_DHCP
 		echo "  pre-up /etc/network/nfs_check"; \
 		echo "  wait-delay 15"; \
 		echo "  hostname \$$(hostname)"; \
+		echo "  udhcpc_opts -b"; \

Wouldn't it make more sense to change the value of CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS in our default busybox.config instead of hardcoding it here?

Does this still do the right thing for the fallback to IPv4LL addressing if avahi-autoipd is enabled?

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw
In reply to Peter Seiderer

Hello Peter,

Quoted 9 lines · On Tue, 16 Feb 2021 21:20:22 +0100 Peter Seiderer <[email protected]> wrote:

- Add the 'udhcpc_opts -b' option to /etc/network/interfaces for the system dhcp configured interface. With this option ('-b: background if lease is not obtained') the udhcpc keeps running in case the initial dhcp requests are not answered immediately.

---
 package/ifupdown-scripts/ifupdown-scripts.mk | 1 +
 1 file changed, 1 insertion(+)

There has been some feedback from Peter Korsgaard on your patch, but you didn't reply to it. Could you follow-up so that we can move forward?

Thanks a lot!

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot