From 76b9c85768b2afdb146bcad72f120d4cd624b2f3 Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Thu, 6 Nov 1997 20:24:15 +0000 Subject: PPP debugging fixed. PPP Persisting fixed. Moved netreport stuff into one place. --- sysconfig/network-scripts/ifup-ppp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sysconfig/network-scripts/ifup-ppp') diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp index 9f57d838..ecdeae97 100755 --- a/sysconfig/network-scripts/ifup-ppp +++ b/sysconfig/network-scripts/ifup-ppp @@ -66,8 +66,9 @@ fi if [ -n "${PAPNAME}" ] ; then opts="$opts name ${PAPNAME}" fi -if [ -n "${DEBUG}" ] ; then +if [ "${DEBUG}" = yes ] ; then opts="$opts debug" + chatdbg="-v" fi CHATSCRIPT=/etc/sysconfig/network-scripts/chat-$DEVNAME @@ -83,7 +84,7 @@ while : ; do /usr/sbin/pppd -detach $opts $MODEMPORT $LINESPEED \ remotename $DEVICE ipparam $DEVICE \ ${PPPOPTIONS} \ - connect "/usr/sbin/chat ${DEBUG:+-v} -f $CHATSCRIPT" + connect "/usr/sbin/chat $chatdbg -f $CHATSCRIPT" # exit if we're not supposed to persist or our lock file has disappeared if [ "$PERSIST" != "yes" -o ! -f /var/run/ppp-$DEVICE.dev ]; then @@ -93,8 +94,6 @@ while : ; do size=`wc -c < /var/run/ppp-$DEVICE.dev` - rm -f /var/run/ppp-$DEVICE.dev - if [ $size = 0 ]; then # pppd never connected timeout=$RETRYTIMEOUT @@ -109,6 +108,7 @@ while : ; do sleep $timeout || { # sleep was killed + rm -f /var/run/ppp-$DEVICE.dev exit 0 } -- cgit v1.2.1