udhcpc -x hostname:<name> not working on nommu

Ian Burns Ian.Burns at rinstrum.com
Wed May 10 01:21:52 UTC 2017


> How about this:
> 
> --- a/networking/udhcp/dhcpc.c
> +++ b/networking/udhcp/dhcpc.c
> @@ -1365,6 +1365,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
>                 /* now it looks similar to udhcpd's config file line:
>                  * "optname optval", using the common routine: */
>                 udhcp_str2optset(optstr, &client_config.options);
> +               if (colon)
> +                       *colon = ':'; /* for NOMMU reexec */
>         }
> 
>         if (udhcp_read_interface(client_config.interface,

I can confirm that fixes it. Nice and simple.

Thanks,
Ian



More information about the busybox mailing list