summaryrefslogtreecommitdiff
path: root/setup-dns.in
diff options
context:
space:
mode:
authorJeff Bilyk <jbilyk@gmail.com>2011-07-16 14:35:24 -0400
committerJeff Bilyk <jbilyk@gmail.com>2011-07-16 14:35:24 -0400
commit37033af8f9df2703a1e1cf922968752309690796 (patch)
treef5832868e5a26ca25029bf76ef2366a7c77dae09 /setup-dns.in
parent296d95cc1206b69da6fc8ecbd36aefec87e60646 (diff)
downloadalpine-conf-37033af8f9df2703a1e1cf922968752309690796.zip
setup-dns: only output search domain if there was one entered
Diffstat (limited to 'setup-dns.in')
-rwxr-xr-xsetup-dns.in4
1 files changed, 3 insertions, 1 deletions
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