Bug 63448

Summary: Configure option "DEBUG=yes" not in chat
Product: [Retired] Red Hat Linux Reporter: Bertil Askelid <bertil>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-04-14 03:22:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bertil Askelid 2002-04-14 03:22:30 UTC
Description of Problem:

The variable "chatdbg" is set in the wrong place. It needs to be
set before it is used :^). And the syntax for accessing the variable
is wrong.

Version-Release number of selected component (if applicable):

initscripts-6.43-1

How Reproducible:

Always.

Steps to Reproduce:
1. see diff below
2. 
3. 

Actual Results:


Expected Results:


Additional Information:
	
network-scripts# diff --unified=2 ifup-ppp ifup-ppp.orig
--- ifup-ppp	Sun Apr 14 07:22:00 2002
+++ ifup-ppp.orig	Wed Feb  6 19:16:46 2002
@@ -61,8 +61,4 @@
 PEERCONF=/etc/ppp/peers/${DEVNAME}
 
-if [ "${DEBUG}" = yes ] ; then
-  CHATDBG="-v"
-fi
-
 if [ ! -f ${PEERCONF} ]; then
   if [ -z "${WVDIALSECT}" ] ; then
@@ -89,5 +85,5 @@
     echo "connect \"/usr/bin/wvdial --remotename ${DEVNAME} --chat
'${WVDIALSECT}'\"" >> ${PEERCONF}
   else
-    echo "connect \"/usr/sbin/chat ${CHATDBG} -r /var/log/messages -f
${CHATSCRIPT}\"" >> ${PEERCONF}
+    echo "connect \"/usr/sbin/chat $chatdbg -f ${CHATSCRIPT}\"" >> ${PEERCONF}
   fi
 fi
@@ -127,4 +123,5 @@
 if [ "${DEBUG}" = yes ] ; then
   opts="$opts debug"
+  chatdbg="-v"
 fi

Comment 1 Bill Nottingham 2002-04-15 02:39:08 UTC
Fixed in 6.64-1, thanks!