From 7bda62d844a31b5dda34706c80850027a17f03e7 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sat, 22 Dec 2012 09:38:38 -0600 Subject: 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 --- sh/udhcpc-hook.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/udhcpc-hook.sh.in b/sh/udhcpc-hook.sh.in index 31f5e68..0744a04 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 -- cgit v1.2.3