From 0f4f383f0771c55144b156ca57f7e00c6097c241 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 7 Feb 2002 03:12:44 +0000 Subject: - fixed typo bug ifup-ippp - fix bug in channel bundling if MSN is missed - support DEBUG option --- sysconfig/network-scripts/ifup-ippp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sysconfig/network-scripts/ifup-ippp b/sysconfig/network-scripts/ifup-ippp index 1f5b5756..2f715796 100755 --- a/sysconfig/network-scripts/ifup-ippp +++ b/sysconfig/network-scripts/ifup-ippp @@ -13,7 +13,6 @@ cd /etc/sysconfig/network-scripts # Get global network configuration [ -f /etc/sysconfig/network ] && . /etc/sysconfig/network -DEBUG="no" GATEWAY="" # set device @@ -195,10 +194,6 @@ function addprovider() # set channel bundling if [ "$BUNDLING" = "yes" -o "$BUNDLING" = "on" ] && [ -n "$SLAVE_DEVICE" ]; then [ -z "$SLAVE_MSN" ] && SLAVE_MSN="$MSN" - if [ -z "$SLAVE_MSN" ]; then - log_echo "Error: $1: SLAVE_MSN not set" - exit 1 - fi [ -z "$SLAVE_PHONE_OUT" ] && SLAVE_PHONE_OUT="$PHONE_OUT" [ -z "$SLAVE_PHONE_IN" ] && SLAVE_PHONE_IN="$PHONE_IN" [ -z "$SLAVE_HUPTIMEOUT" ] && SLAVE_HUPTIMEOUT="$HUPTIMEOUT" @@ -314,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 -- cgit v1.2.1