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 don't add a search line if the do...
details: https://anonhg.NetBSD.org/src/rev/4b8eead56b52
branches: trunk
changeset: 524940:4b8eead56b52
user: christos <christos%NetBSD.org@localhost>
date: Tue Apr 02 19:16:59 2002 +0000
description:
don't add a search line if the domain name is empty. Pointed out by perry.
diffstat:
usr.sbin/dhcp/clientscript/dhclient-script | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 0fe856b58b20 -r 4b8eead56b52 usr.sbin/dhcp/clientscript/dhclient-script
--- a/usr.sbin/dhcp/clientscript/dhclient-script Tue Apr 02 18:59:54 2002 +0000
+++ b/usr.sbin/dhcp/clientscript/dhclient-script Tue Apr 02 19:16:59 2002 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: dhclient-script,v 1.2 2002/04/02 17:39:47 christos Exp $
+# $NetBSD: dhclient-script,v 1.3 2002/04/02 19:16:59 christos Exp $
ENTERHOOKS=/etc/dhclient-enter-hooks
EXITHOOKS=/etc/dhclient-exit-hooks
@@ -18,7 +18,10 @@
fi
fi
echo "$SIGNATURE$(date)" > $RESOLV
- echo search $new_domain_name >> $RESOLV
+ if [ ! -z "$new_domain_name" ]
+ then
+ echo search $new_domain_name >> $RESOLV
+ fi
for nameserver in $new_domain_name_servers; do
echo nameserver $nameserver
done >> $RESOLV
Home |
Main Index |
Thread Index |
Old Index