ifupdown: use -x hostname:NAME with udhcpc
The -H NAME is deprecated in udhcpc. See commit
2017d48c0d
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
6bd3fff51a
commit
1062391365
@ -535,7 +535,7 @@ static const struct dhcp_client_t ext_dhcp_clients[] = {
|
||||
"pump -i %iface% -k",
|
||||
},
|
||||
{ "udhcpc",
|
||||
"udhcpc " UDHCPC_CMD_OPTIONS " -p /var/run/udhcpc.%iface%.pid -i %iface%[[ -H %hostname%]][[ -c %client%]]"
|
||||
"udhcpc " UDHCPC_CMD_OPTIONS " -p /var/run/udhcpc.%iface%.pid -i %iface%[[ -x hostname:%hostname%]][[ -c %client%]]"
|
||||
"[[ -s %script%]][[ %udhcpc_opts%]]",
|
||||
"kill `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null",
|
||||
},
|
||||
@ -575,7 +575,7 @@ static int FAST_FUNC dhcp_up(struct interface_defn_t *ifd, execfn *exec)
|
||||
return 0;
|
||||
# endif
|
||||
return execute("udhcpc " UDHCPC_CMD_OPTIONS " -p /var/run/udhcpc.%iface%.pid "
|
||||
"-i %iface%[[ -H %hostname%]][[ -c %client%]][[ -s %script%]][[ %udhcpc_opts%]]",
|
||||
"-i %iface%[[ -x hostname:%hostname%]][[ -c %client%]][[ -s %script%]][[ %udhcpc_opts%]]",
|
||||
ifd, exec);
|
||||
}
|
||||
# else
|
||||
|
Loading…
Reference in New Issue
Block a user