summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2009-01-24 13:59:44 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2009-01-24 13:59:44 +0000
commitcaca7cc5187ab7efd914f6d3a9c372cb99fdb407 (patch)
tree5bbce5f1ac3488ff157b059390e9c136f534df65
parentf3b1b26cf8dd7b61f41fc81a8d88ee1ea05a8ac4 (diff)
Improve comment about resolv.conf creation. Prodded by sobrado@.
-rw-r--r--sbin/dhclient/dhclient-script10
1 files changed, 4 insertions, 6 deletions
diff --git a/sbin/dhclient/dhclient-script b/sbin/dhclient/dhclient-script
index 049b0fc6879..86d9ea7a2d4 100644
--- a/sbin/dhclient/dhclient-script
+++ b/sbin/dhclient/dhclient-script
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: dhclient-script,v 1.12 2007/08/11 17:58:55 krw Exp $
+# $OpenBSD: dhclient-script,v 1.13 2009/01/24 13:59:43 krw Exp $
#
# Copyright (c) 2003 Kenneth R Westerback <krw@openbsd.org>
#
@@ -94,11 +94,9 @@ add_new_routes() {
}
add_new_resolv_conf() {
- # XXX Old code did not create/update resolv.conf unless both
- # $new_domain_name and $new_domain_name_servers were provided. PR
- # #3135 reported some ISPs only provide $new_domain_name_servers and
- # thus broke the script. This code creates the resolv.conf if either
- # are provided.
+ # Create resolv.conf when either $new_domain_name_servers or
+ # $new_domain_name are provided. As reported in PR#3135, some ISPs
+ # provide only $new_domain_name_servers.
rm -f /etc/resolv.conf.std