From b90b84b36d01f6663a79d9467a37cd9d6f6a68e7 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Thu, 5 Jun 2014 15:38:07 +0800 Subject: [PATCH] discover/network: leave udhcpc processes running Currently, we start udhcpc with the '-n' argument, which means they'll exit if no lease is obtained. We'd prefer to leave the DHCP client running, so that any slow-to-initialise links are not left deconfigured. Signed-off-by: Jeremy Kerr --- discover/network.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/discover/network.c b/discover/network.c index 36807f0..1801710 100644 --- a/discover/network.c +++ b/discover/network.c @@ -228,7 +228,6 @@ static void configure_interface_dhcp(struct interface *interface) const char *argv[] = { pb_system_apps.udhcpc, "-R", - "-n", "-f", "-O", "pxeconffile", "-O", "pxepathprefix", @@ -245,7 +244,7 @@ static void configure_interface_dhcp(struct interface *interface) if (platform && platform->dhcp_arch_id != 0xffff) snprintf(id, sizeof(id), "0x5d:%04x", platform->dhcp_arch_id); else - argv[12] = NULL; + argv[11] = NULL; process = process_create(interface); -- 2.39.2