diff options
author | Jeff Bilyk <jbilyk@gmail.com> | 2011-07-16 14:35:24 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-11 07:52:30 +0000 |
commit | a6560d28d30b54d9a7d52c3171a80458537e8a44 (patch) | |
tree | e0fd904aae273c73aed5f0f7281a84101bce5ad8 /setup-dns.in | |
parent | 357361cda1b4a129edddcc1d55b5bc231c74a4e7 (diff) | |
download | alpine-conf-a6560d28d30b54d9a7d52c3171a80458537e8a44.tar.bz2 alpine-conf-a6560d28d30b54d9a7d52c3171a80458537e8a44.tar.xz |
setup-dns: only output search domain if there was one entered
(cherry picked from commit 37033af8f9df2703a1e1cf922968752309690796)
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 |