net/udhcpc: use -x hostname:NAME option instead of -h name

reported-by: bug@mejor.pl
X-Gentoo-Bug: 417617
X-Gentoo-Bug-URL: https://bugs.gentoo.org/417617
This commit is contained in:
William Hubbs 2012-06-07 00:12:20 -05:00
parent 92b274a7de
commit ae7cbd910a

View File

@ -66,7 +66,7 @@ udhcpc_start()
if ${sendhost}; then
local hname="$(hostname)"
if [ "${hname}" != "(none)" ] && [ "${hname}" != "localhost" ]; then
args="${args} --hostname='${hname}'"
args="${args} -x hostname:'${hname}'"
fi
fi
;;