Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/dhcp/clientscript update resolv.conf if we have new...



details:   https://anonhg.NetBSD.org/src/rev/124a8f6186bc
branches:  trunk
changeset: 531890:124a8f6186bc
user:      christos <christos%NetBSD.org@localhost>
date:      Tue May 28 15:04:01 2002 +0000

description:
update resolv.conf if we have new nameservers. Don't require a domain, because
it is not needed.

diffstat:

 usr.sbin/dhcp/clientscript/dhclient-script |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r ad8b758e2d27 -r 124a8f6186bc usr.sbin/dhcp/clientscript/dhclient-script
--- a/usr.sbin/dhcp/clientscript/dhclient-script        Tue May 28 14:38:55 2002 +0000
+++ b/usr.sbin/dhcp/clientscript/dhclient-script        Tue May 28 15:04:01 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: dhclient-script,v 1.4 2002/04/10 10:11:41 enami Exp $
+# $NetBSD: dhclient-script,v 1.5 2002/05/28 15:04:01 christos Exp $
 
 ENTERHOOKS=/etc/dhclient-enter-hooks
 EXITHOOKS=/etc/dhclient-exit-hooks
@@ -8,8 +8,7 @@
 SIGNATURE="# Created by dhclient at: "
 
 make_resolv_conf() {
-       if [ \( ! -z "$new_domain_name" \) -a \
-            \( ! -z "$new_domain_name_servers" \) ]; then
+       if [ ! -z "$new_domain_name_servers" ]; then
                if [ -f $RESOLV ]
                then
                        while read line; do



Home | Main Index | Thread Index | Old Index