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 <jk@ozlabs.org>
const char *argv[] = {
pb_system_apps.udhcpc,
"-R",
const char *argv[] = {
pb_system_apps.udhcpc,
"-R",
"-f",
"-O", "pxeconffile",
"-O", "pxepathprefix",
"-f",
"-O", "pxeconffile",
"-O", "pxepathprefix",
if (platform && platform->dhcp_arch_id != 0xffff)
snprintf(id, sizeof(id), "0x5d:%04x", platform->dhcp_arch_id);
else
if (platform && platform->dhcp_arch_id != 0xffff)
snprintf(id, sizeof(id), "0x5d:%04x", platform->dhcp_arch_id);
else
process = process_create(interface);
process = process_create(interface);