summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcp/dhclient/scripts/dhclient-script
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/dhcp/dhclient/scripts/dhclient-script')
-rw-r--r--usr.sbin/dhcp/dhclient/scripts/dhclient-script6
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