Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 48277 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-2 / +2 lines)
Line  Link Here
0
-- domainname.orig     2004-09-29 14:23:28.453907384 +0000
0
++ domainname  2004-09-29 14:23:40.543069552 +0000
Lines 50-56 Link Here
50
               [ ! -f /etc/resolv.conf ] && touch /etc/resolv.conf
50
               [ ! -f /etc/resolv.conf ] && touch /etc/resolv.conf
51
               ebegin "Setting DNS domainname to ${mydnsdomain}"
51
               ebegin "Setting DNS domainname to ${mydnsdomain}"
52
               gawk -v DOMAIN="${mydnsdomain}" \
52
               gawk -v DOMAIN="${mydnsdomain}" \
53
                       'BEGIN { print "domain " DOMAIN }
53
                       'END { print "domain " DOMAIN }
54
                        $0 !~ /^[[:space:]]*domain/ { print }' \
54
                        $0 !~ /^[[:space:]]*domain/ { print }' \
55
                       /etc/resolv.conf > /etc/resolv.conf.new
55
                       /etc/resolv.conf > /etc/resolv.conf.new
56
               retval2=$?
56
               retval2=$?

Return to bug 48277