[Resolvconf-devel] Bug#460609: Wrong patch

Andrew Pollock me at andrew.net.au
Mon Jan 14 00:45:18 UTC 2008


Sorry, I attached the wrong patch. Here's the right one.
-------------- next part --------------
--- etc/dhcp3/dhclient-enter-hooks.d/resolvconf	2006-08-09 06:36:43.000000000 -0700
+++ /tmp/resolvconf	2008-01-13 16:26:56.762015442 -0800
@@ -27,12 +27,19 @@
 			make_resolv_conf() {
 				R=""
 				if [ "$new_domain_name_servers" ] && [ "$new_domain_name" ] ; then
-					R="${R}search $new_domain_name
+					R="${R}domain $new_domain_name
 "
+					echo $R
+				fi
+				if [ "$new_domain_name_servers" ] && [ "$new_domain_search" ] ; then
+					R="${R}search ${new_domain_search/\\032/ }
+"
+					echo $R
 				fi
 				for nameserver in $new_domain_name_servers ; do
 					R="${R}nameserver $nameserver
 "
+					echo $R
 				done
 				[ ! "$interface" ] || echo -n "$R" | /sbin/resolvconf -a "$interface"
 			}


More information about the Resolvconf-devel mailing list