This patch seems safer and I think fixes the problems in the original 
patch.

--- /etc/dhclient-script        2004-05-18 07:56:10.000000000 -0400
+++ dhclient-script     2005-08-12 23:38:30.000000000 -0400
@@ -49,7 +49,10 @@
   }
 else
   make_resolv_conf() {
-    echo search $new_domain_name >/etc/resolv.conf
+    : >/etc/resolv.conf
+    if [ "$new_domain_name" ]; then
+       echo search $new_domain_name >>/etc/resolv.conf
+    fi
     for nameserver in $new_domain_name_servers; do
       echo nameserver $nameserver >>/etc/resolv.conf
     done

Attachment: pgprb94gHsDy9.pgp
Description: PGP signature

Reply via email to