From 6cc3ed09979177daab412b5eb9e8d1b613d4a718 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 17 Jul 2001 15:52:26 +0000 Subject: * fixed country_code --- sysconfig/network-scripts/ifup-ippp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/ifup-ippp b/sysconfig/network-scripts/ifup-ippp index a560603b..45c2138c 100755 --- a/sysconfig/network-scripts/ifup-ippp +++ b/sysconfig/network-scripts/ifup-ippp @@ -88,7 +88,7 @@ function addprovider() [ -z "$REMOTE_IP" ] && REMOTE_IP="0.0.0.0" # set default route - [ "$DELDEFAULTROUTE" = "enabled" -o -z "$DELDEFAULTROUTE" ] && options="$options deldefaultroute" + [ "$DEFROUTE" = "yes" ] && options="$options deldefaultroute" # set authentication [ -z "$USER" ] && USER="dialup" @@ -105,6 +105,12 @@ function addprovider() log_isdnctrl eaz $DEVICE $MSN # set dialout numbers + if echo $COUNTRYCODE | grep ":" >/dev/null 2>&1 ; then + COUNTRYCODE="$(echo $COUNTRYCODE | cut -f 2 -d ':')" + [ "$COUNTRYCODE" = "0" ] && COUNTRYCODE= + else + COUNTRYCODE= + fi for i in $PHONE_OUT; do log_isdnctrl addphone $DEVICE out $COUNTRYCODE$PREFIX$AREACODE$i done -- cgit v1.2.1