From 37033af8f9df2703a1e1cf922968752309690796 Mon Sep 17 00:00:00 2001 From: Jeff Bilyk Date: Sat, 16 Jul 2011 14:35:24 -0400 Subject: setup-dns: only output search domain if there was one entered --- setup-dns.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'setup-dns.in') diff --git a/setup-dns.in b/setup-dns.in index fd6b04e..02d6cc0 100755 --- a/setup-dns.in +++ b/setup-dns.in @@ -18,7 +18,9 @@ done echon "] " default_read dns "$dns" -echo "search $domain" > $conf +if [ "$domain" != "" ]; then + echo "search $domain" > $conf +fi for i in $dns ; do echo "nameserver $i" >> $conf done -- cgit v1.2.3