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
This commit is contained in:
parent
b00f85864d
commit
7bda62d844
@ -14,7 +14,7 @@ update_dns()
|
|||||||
[ -z "${domain}" ] && [ -z "${dns}" ] && return
|
[ -z "${domain}" ] && [ -z "${dns}" ] && return
|
||||||
|
|
||||||
conf="# Generated by udhcpc for ${interface}\n"
|
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
|
for i in ${dns} ; do
|
||||||
conf="${conf}nameserver ${i}\n"
|
conf="${conf}nameserver ${i}\n"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user