diff options
author | Jeff Bilyk <jbilyk@gmail.com> | 2011-07-16 14:35:24 -0400 |
---|---|---|
committer | Jeff Bilyk <jbilyk@gmail.com> | 2011-07-16 14:35:24 -0400 |
commit | 37033af8f9df2703a1e1cf922968752309690796 (patch) | |
tree | f5832868e5a26ca25029bf76ef2366a7c77dae09 /setup-dns.in | |
parent | 296d95cc1206b69da6fc8ecbd36aefec87e60646 (diff) | |
download | alpine-conf-37033af8f9df2703a1e1cf922968752309690796.zip |
setup-dns: only output search domain if there was one entered
Diffstat (limited to 'setup-dns.in')
-rwxr-xr-x | setup-dns.in | 4 |
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 |