aboutsummaryrefslogtreecommitdiff
path: root/sh/udhcpc-hook.sh.in
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2012-12-22 09:38:38 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2012-12-22 09:38:38 -0600
commit7bda62d844a31b5dda34706c80850027a17f03e7 (patch)
tree17c5801c6910a6734a16321d8e73c3db47b755a8 /sh/udhcpc-hook.sh.in
parentb00f85864dffd6de406e109e74372618ced71312 (diff)
udhcpc: fix resolv.conf setting for domain
The value that was supposed to be in the domain setting was being added incorrectly to search. Reported-by: bug@mejor.pl X-Gentoo-Bug: 446862 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=446862
Diffstat (limited to 'sh/udhcpc-hook.sh.in')
-rw-r--r--sh/udhcpc-hook.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/udhcpc-hook.sh.in b/sh/udhcpc-hook.sh.in
index 31f5e689..0744a04c 100644
--- a/sh/udhcpc-hook.sh.in
+++ b/sh/udhcpc-hook.sh.in
@@ -14,7 +14,7 @@ update_dns()
[ -z "${domain}" ] && [ -z "${dns}" ] && return
conf="# Generated by udhcpc for ${interface}\n"
- [ -n "${domain}" ] && conf="${conf}search ${domain}\n"
+ [ -n "${domain}" ] && conf="${conf}domain ${domain}\n"
for i in ${dns} ; do
conf="${conf}nameserver ${i}\n"
done