udhcpc: fix "udhcpc -x hostname:<name> not working on nommu"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
c5d16e92c1
commit
741bfa9a72
@ -1072,6 +1072,8 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
/* now it looks similar to udhcpd's config file line:
|
/* now it looks similar to udhcpd's config file line:
|
||||||
* "optname optval", using the common routine: */
|
* "optname optval", using the common routine: */
|
||||||
udhcp_str2optset(optstr, &client_config.options);
|
udhcp_str2optset(optstr, &client_config.options);
|
||||||
|
if (colon)
|
||||||
|
*colon = ':'; /* restore it for NOMMU reexec */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (d6_read_interface(client_config.interface,
|
if (d6_read_interface(client_config.interface,
|
||||||
|
@ -1365,6 +1365,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
/* now it looks similar to udhcpd's config file line:
|
/* now it looks similar to udhcpd's config file line:
|
||||||
* "optname optval", using the common routine: */
|
* "optname optval", using the common routine: */
|
||||||
udhcp_str2optset(optstr, &client_config.options);
|
udhcp_str2optset(optstr, &client_config.options);
|
||||||
|
if (colon)
|
||||||
|
*colon = ':'; /* restore it for NOMMU reexec */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (udhcp_read_interface(client_config.interface,
|
if (udhcp_read_interface(client_config.interface,
|
||||||
|
Loading…
Reference in New Issue
Block a user