From 10aab0aaf62ab73014fb77d47105ff09acdba403 Mon Sep 17 00:00:00 2001 From: Edgar Bonet Date: Sat, 13 Aug 2022 22:53:17 +0200 Subject: [PATCH] package/busybox: speed up DHCP lease acquisition Commit c343e01ac4908f76520cf9a405ed87650e78dc62 made udhcpc send a single DHCP request (instead of 3) before going to the background, thus speeding up the boot process if the DHCP lease is not obtained immediately. Unfortunately, this can also slow down the acquisition of the lease as, after going to the background, udhcpc waits for 20 seconds (instead of 3) before retrying. Speed up the lease acquisition by setting the retry timeout to 3 seconds. Signed-off-by: Edgar Bonet Signed-off-by: Yann E. MORIN --- package/busybox/busybox.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/busybox/busybox.config b/package/busybox/busybox.config index 2409cbcce1..137e44c870 100644 --- a/package/busybox/busybox.config +++ b/package/busybox/busybox.config @@ -1022,7 +1022,7 @@ CONFIG_UDHCP_DEBUG=0 CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 CONFIG_FEATURE_UDHCP_RFC3397=y CONFIG_FEATURE_UDHCP_8021Q=y -CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-t1 -b -R -O search" +CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-t1 -A3 -b -R -O search" # # Print Utilities