summaryrefslogtreecommitdiffstats
path: root/dhclient/fix-broken-resolvconf.patch
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-07-14 23:36:07 +0200
committerFlorian Pritz <f-p@gmx.at>2009-07-14 23:36:07 +0200
commit0be59e14ff6169506c6e13a291584323f4e431da (patch)
tree833c49a6b9dd2a7f8ab44a251337eb603d302c43 /dhclient/fix-broken-resolvconf.patch
parente4d1068c06190de5dd46727c1f2f1249786dd13b (diff)
downloadaur-packages-0be59e14ff6169506c6e13a291584323f4e431da.tar.gz
aur-packages-0be59e14ff6169506c6e13a291584323f4e431da.tar.xz
updated dhclient
Diffstat (limited to 'dhclient/fix-broken-resolvconf.patch')
-rw-r--r--dhclient/fix-broken-resolvconf.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/dhclient/fix-broken-resolvconf.patch b/dhclient/fix-broken-resolvconf.patch
new file mode 100644
index 0000000..5f73167
--- /dev/null
+++ b/dhclient/fix-broken-resolvconf.patch
@@ -0,0 +1,15 @@
+diff -Nur dhcp-3.0.6.orig/client/scripts/linux dhcp-3.0.6/client/scripts/linux
+--- dhcp-3.0.6.orig/client/scripts/linux 2008-03-29 18:44:07.000000000 +0100
++++ dhcp-3.0.6/client/scripts/linux 2008-03-29 18:45:06.000000000 +0100
+@@ -36,8 +36,9 @@
+ fi;
+
+ make_resolv_conf() {
+- if [ "x$new_domain_name" != x ] && [ x"$new_domain_name_servers" != x ]; then
+- echo search $new_domain_name >/etc/resolv.conf
++ if [ -n "$new_domain_name_servers" ]; then
++ : > /etc/resolv.conf
++ [ -n "$new_domain_name" ] && echo search $new_domain_name >/etc/resolv.conf
+ chmod 644 /etc/resolv.conf
+ for nameserver in $new_domain_name_servers; do
+ echo nameserver $nameserver >>/etc/resolv.conf