aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ppp
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1997-11-06 20:24:15 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1997-11-06 20:24:15 +0000
commit76b9c85768b2afdb146bcad72f120d4cd624b2f3 (patch)
tree86f555f0cfd87fdd18b3ad6c7d6d8763c3d2cbc4 /sysconfig/network-scripts/ifup-ppp
parentededfe707d0ea05fbf6985997befdbbe4cbc5b18 (diff)
downloadinitscripts-76b9c85768b2afdb146bcad72f120d4cd624b2f3.tar
initscripts-76b9c85768b2afdb146bcad72f120d4cd624b2f3.tar.gz
initscripts-76b9c85768b2afdb146bcad72f120d4cd624b2f3.tar.bz2
initscripts-76b9c85768b2afdb146bcad72f120d4cd624b2f3.tar.xz
initscripts-76b9c85768b2afdb146bcad72f120d4cd624b2f3.zip
PPP debugging fixed.
PPP Persisting fixed. Moved netreport stuff into one place.
Diffstat (limited to 'sysconfig/network-scripts/ifup-ppp')
-rwxr-xr-xsysconfig/network-scripts/ifup-ppp8
1 files changed, 4 insertions, 4 deletions
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
}