From: Jeremy Kerr Date: Thu, 5 Jun 2014 07:38:07 +0000 (+0800) Subject: discover/network: leave udhcpc processes running X-Git-Tag: v1.0.0~174 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=b90b84b36d01f6663a79d9467a37cd9d6f6a68e7;hp=a70b45006752970840fdfff0a595d293b67a8548 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 --- 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);