netifd: always send DHCPv4 hostname
authorMathias Kresin <dev@kresin.me>
Fri, 8 Dec 2017 08:35:26 +0000 (09:35 +0100)
committerMathias Kresin <dev@kresin.me>
Fri, 8 Dec 2017 20:00:26 +0000 (21:00 +0100)
commitabdf0dea3ab6470b596096635a60fbe2e8d0dfff
tree5d08a1b634cf76a04b413bf1d1d8573f22cf1210
parent93bd46b719dc54076a8e6e6efb3259c7417375b6
netifd: always send DHCPv4 hostname

udhcpc doesn't send a hostname by default. Use the system hostname if
nothing else is specified, to always send a hostname.

It syncs the behaviour to odhcpc, which always sends a hostname.

Signed-off-by: Mathias Kresin <dev@kresin.me>
Acked-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Hans Dedecker <dedeckeh@gmail.com>
package/network/config/netifd/files/lib/netifd/proto/dhcp.sh