summaryrefslogtreecommitdiff
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:39:14 -0500
commitcd2d520fd175f4bca804e0604869a2afd7095bcb (patch)
tree76c8c8be581791a9000684f431edc4f6367e776f
parent0e3860e76f2d59b7093cbad04c9f375088e1c0e8 (diff)
downloadopenrc-cd2d520fd175f4bca804e0604869a2afd7095bcb.tar.gz
openrc-cd2d520fd175f4bca804e0604869a2afd7095bcb.tar.bz2
openrc-cd2d520fd175f4bca804e0604869a2afd7095bcb.tar.xz
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 4eb0b51..d001867 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
;;