aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2012-06-07 00:12:20 -0500
committerWilliam Hubbs <williamh@gentoo.org>2012-06-07 00:12:20 -0500
commitae7cbd910a8d95fcf47ea99e19976e3398f6d947 (patch)
tree7067ea7198e4b0f2c90163d093b01c60a458c563
parent92b274a7dea93c4832bcbb0905beb2a93df080e4 (diff)
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
-rw-r--r--net/udhcpc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/udhcpc.sh b/net/udhcpc.sh
index 4eb0b513..d0018672 100644
--- a/net/udhcpc.sh
+++ b/net/udhcpc.sh
@@ -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
;;