diff options
-rw-r--r-- | networking/ifupdown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index d477ff6d1..766dfabbd 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -535,7 +535,7 @@ static const struct dhcp_client_t ext_dhcp_clients[] = { | |||
535 | "pump -i %iface% -k", | 535 | "pump -i %iface% -k", |
536 | }, | 536 | }, |
537 | { "udhcpc", | 537 | { "udhcpc", |
538 | "udhcpc " UDHCPC_CMD_OPTIONS " -p /var/run/udhcpc.%iface%.pid -i %iface%[[ -H %hostname%]][[ -c %client%]]" | 538 | "udhcpc " UDHCPC_CMD_OPTIONS " -p /var/run/udhcpc.%iface%.pid -i %iface%[[ -x hostname:%hostname%]][[ -c %client%]]" |
539 | "[[ -s %script%]][[ %udhcpc_opts%]]", | 539 | "[[ -s %script%]][[ %udhcpc_opts%]]", |
540 | "kill `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", | 540 | "kill `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", |
541 | }, | 541 | }, |
@@ -575,7 +575,7 @@ static int FAST_FUNC dhcp_up(struct interface_defn_t *ifd, execfn *exec) | |||
575 | return 0; | 575 | return 0; |
576 | # endif | 576 | # endif |
577 | return execute("udhcpc " UDHCPC_CMD_OPTIONS " -p /var/run/udhcpc.%iface%.pid " | 577 | return execute("udhcpc " UDHCPC_CMD_OPTIONS " -p /var/run/udhcpc.%iface%.pid " |
578 | "-i %iface%[[ -H %hostname%]][[ -c %client%]][[ -s %script%]][[ %udhcpc_opts%]]", | 578 | "-i %iface%[[ -x hostname:%hostname%]][[ -c %client%]][[ -s %script%]][[ %udhcpc_opts%]]", |
579 | ifd, exec); | 579 | ifd, exec); |
580 | } | 580 | } |
581 | # else | 581 | # else |