diff options
-rw-r--r-- | setup-dns.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-dns.in b/setup-dns.in index 9b3a44f..19e7612 100644 --- a/setup-dns.in +++ b/setup-dns.in @@ -58,7 +58,7 @@ if [ "$domain" != "" ]; then echo "search $domain" > $conf fi -if [ -n "$dns" ] || [ $# -gt 0 ]; then +if [ -n "$dns" ] || [ $# -gt 0 ] && [ -f "$conf" ]; then sed -i -e '/^nameserver/d' $conf fi for i in $dns $@; do |