aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ppp
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1999-12-06 15:52:35 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1999-12-06 15:52:35 +0000
commit89dca649785a919576aa4b830969bba63ee89139 (patch)
treefcc007226738e9394691afccbbbd99dce08f4ec3 /sysconfig/network-scripts/ifup-ppp
parent52c1609faab15653bedd39f6de63154d57e8652f (diff)
downloadinitscripts-89dca649785a919576aa4b830969bba63ee89139.tar
initscripts-89dca649785a919576aa4b830969bba63ee89139.tar.gz
initscripts-89dca649785a919576aa4b830969bba63ee89139.tar.bz2
initscripts-89dca649785a919576aa4b830969bba63ee89139.tar.xz
initscripts-89dca649785a919576aa4b830969bba63ee89139.zip
Fix suggested by Adam P. Jenkins, tests fine here, may improve CHAP as well.
Diffstat (limited to 'sysconfig/network-scripts/ifup-ppp')
-rwxr-xr-xsysconfig/network-scripts/ifup-ppp8
1 files changed, 3 insertions, 5 deletions
diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp
index 2b245bbb..2b4b4a8c 100755
--- a/sysconfig/network-scripts/ifup-ppp
+++ b/sysconfig/network-scripts/ifup-ppp
@@ -74,7 +74,7 @@ if [ -n "${IPADDR}${REMIP}" ] ; then
opts="$opts ${IPADDR}:${REMIP}"
fi
if [ -n "${PAPNAME}" ] ; then
- opts="$opts name ${PAPNAME}"
+ opts="$opts user ${PAPNAME} remotename ${DEVNAME}"
fi
if [ "${DEBUG}" = yes ] ; then
opts="$opts debug"
@@ -95,15 +95,13 @@ fi
if [ -n "$WVDIALSECT" ] ; then
exec /usr/sbin/pppd -detach $opts $MODEMPORT $LINESPEED \
- remotename $DEVICE ipparam $DEVICE \
- linkname $DEVICE \
+ ipparam $DEVICE linkname $DEVICE \
noauth \
${PPPOPTIONS} \
connect "/usr/bin/wvdial --remotename $DEVICE --chat $WVDIALSECT"
else
exec /usr/sbin/pppd -detach $opts $MODEMPORT $LINESPEED \
- remotename $DEVICE ipparam $DEVICE \
- linkname $DEVICE \
+ ipparam $DEVICE linkname $DEVICE \
noauth \
${PPPOPTIONS} \
connect "/usr/sbin/chat $chatdbg -f $CHATSCRIPT"