summaryrefslogtreecommitdiff
path: root/net/dhclient.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-23 16:41:32 +0000
committerRoy Marples <roy@marples.name>2007-04-23 16:41:32 +0000
commit7766f7e987dcaad281a66b8046145a3711278fae (patch)
treec7ce807a9cd008d72b088413071dc875e8bdc00b /net/dhclient.sh
parentb0e3880bd41fcfc6cfaca51c71b85a7275a17a47 (diff)
downloadopenrc-7766f7e987dcaad281a66b8046145a3711278fae.tar.gz
openrc-7766f7e987dcaad281a66b8046145a3711278fae.tar.bz2
openrc-7766f7e987dcaad281a66b8046145a3711278fae.tar.xz
Fix dhclient
Diffstat (limited to 'net/dhclient.sh')
-rw-r--r--net/dhclient.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/dhclient.sh b/net/dhclient.sh
index dc01337..b9fe14a 100644
--- a/net/dhclient.sh
+++ b/net/dhclient.sh
@@ -33,7 +33,7 @@ dhclient_start() {
if ${sendhost} ; then
local hname="$(hostname)"
if [ "${hname}" != "(none)" -a "${hname}" != "localhost" ]; then
- dhconf="${dhconf} interface \"${iface}\" {"
+ dhconf="${dhconf} interface \"${IFACE}\" {"
dhconf="${dhconf} send host-name \"${hname}\";"
dhconf="${dhconf}}"
fi
@@ -41,9 +41,11 @@ dhclient_start() {
# Bring up DHCP for this interface
ebegin "Running dhclient"
+ set -x
echo "${dhconf}" | start-stop-daemon --start --exec /sbin/dhclient \
- --pidfile "${pidfile}" -- ${opts} -q -1 -pf "${pidfile}" "${IFACE}"
+ --pidfile "${pidfile}" -- ${args} -q -1 -pf "${pidfile}" "${IFACE}"
eend $? || return 1
+ set +x
_show_address
return 0