diff options
author | Chris Cappuccio <chris@cvs.openbsd.org> | 2000-02-11 01:23:19 +0000 |
---|---|---|
committer | Chris Cappuccio <chris@cvs.openbsd.org> | 2000-02-11 01:23:19 +0000 |
commit | 19bf6b7b0dff2ca895e0dceda968b55f738c7eca (patch) | |
tree | 22cbec88e79e34939d241c3f20bee5b098bc3c07 /usr.sbin/dhcp/dhclient | |
parent | e6cec0bb6433f38dc35fb5b0302d3e413d0d3507 (diff) |
Fix from jonathon.fletcher@pobox.com
Check $new_domain_name_servers not $nameserver
Diffstat (limited to 'usr.sbin/dhcp/dhclient')
-rw-r--r-- | usr.sbin/dhcp/dhclient/scripts/dhclient-script | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/dhcp/dhclient/scripts/dhclient-script b/usr.sbin/dhcp/dhclient/scripts/dhclient-script index 8cea2640444..0f8d5430e57 100644 --- a/usr.sbin/dhcp/dhclient/scripts/dhclient-script +++ b/usr.sbin/dhcp/dhclient/scripts/dhclient-script @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: dhclient-script,v 1.3 2000/01/31 17:51:42 chris Exp $ +# $OpenBSD: dhclient-script,v 1.4 2000/02/11 01:23:18 chris Exp $ # if [ x$new_network_number != x ]; then @@ -90,7 +90,7 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \ fi if [ x$new_domain_name != x ]; then - if [ x$nameserver != x ]; + if [ -n "$new_domain_name_servers" ]; then echo search $new_domain_name >/etc/resolv.conf for nameserver in $new_domain_name_servers; do @@ -157,7 +157,7 @@ if [ x$reason = xTIMEOUT ]; then done fi if [ "$new_domain_name" != "" ]; then - if [ "$nameserver" != "" ]; then + if [ -n "$new_domain_name_servers" ]; then echo search $new_domain_name >/etc/resolv.conf.std for nameserver in $new_domain_name_servers; do echo nameserver $nameserver >>/etc/resolv.conf.std |