aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ippp
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/ifup-ippp')
-rwxr-xr-xsysconfig/network-scripts/ifup-ippp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-ippp b/sysconfig/network-scripts/ifup-ippp
index de314e58..2f715796 100755
--- a/sysconfig/network-scripts/ifup-ippp
+++ b/sysconfig/network-scripts/ifup-ippp
@@ -309,7 +309,8 @@ function addprovider()
if [ -z "$DNS1" -a -z "$DNS2" ]; then
options="$options ms-get-dns"
else
- options="$options ms-dns $DNS1 $DNS2"
+ [ -n "$DNS1" ] && options="$options ms-dns $DNS1"
+ [ -n "$DNS2" ] && options="$options ms-dns $DNS2"
fi
# set debug