aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ippp
diff options
context:
space:
mode:
authorThan Ngo <than@redhat.com>2001-07-17 15:52:26 +0000
committerThan Ngo <than@redhat.com>2001-07-17 15:52:26 +0000
commit6cc3ed09979177daab412b5eb9e8d1b613d4a718 (patch)
tree64c6c40543ad5822158b1114767618615f178573 /sysconfig/network-scripts/ifup-ippp
parente8a0675ef3d5b11f05ca4548aeabd7d02d51e89a (diff)
downloadinitscripts-6cc3ed09979177daab412b5eb9e8d1b613d4a718.tar
initscripts-6cc3ed09979177daab412b5eb9e8d1b613d4a718.tar.gz
initscripts-6cc3ed09979177daab412b5eb9e8d1b613d4a718.tar.bz2
initscripts-6cc3ed09979177daab412b5eb9e8d1b613d4a718.tar.xz
initscripts-6cc3ed09979177daab412b5eb9e8d1b613d4a718.zip
* fixed country_code
Diffstat (limited to 'sysconfig/network-scripts/ifup-ippp')
-rwxr-xr-xsysconfig/network-scripts/ifup-ippp8
1 files changed, 7 insertions, 1 deletions
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