From 106379bcb8f65193f9105d2f5477de9e0b65337a Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 15 Apr 2002 02:35:32 +0000 Subject: make sure chatdbg is set before using it (#63448) --- sysconfig/network-scripts/ifup-ppp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sysconfig/network-scripts') diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp index 6ad80664..991476d7 100755 --- a/sysconfig/network-scripts/ifup-ppp +++ b/sysconfig/network-scripts/ifup-ppp @@ -60,6 +60,10 @@ fi PEERCONF=/etc/ppp/peers/${DEVNAME} +if [ "${DEBUG}" = "yes" ]; then + CHATDBG="-v" +fi + if [ ! -f ${PEERCONF} ]; then if [ -z "${WVDIALSECT}" ] ; then CHATSCRIPT=/etc/sysconfig/network-scripts/chat-${DEVNAME} @@ -84,7 +88,7 @@ if [ ! -f ${PEERCONF} ]; then if [ "${WVDIALSECT}" ]; then echo "connect \"/usr/bin/wvdial --remotename ${DEVNAME} --chat '${WVDIALSECT}'\"" >> ${PEERCONF} else - echo "connect \"/usr/sbin/chat $chatdbg -f ${CHATSCRIPT}\"" >> ${PEERCONF} + echo "connect \"/usr/sbin/chat ${CHATDBG} -f ${CHATSCRIPT}\"" >> ${PEERCONF} fi fi @@ -122,7 +126,6 @@ if [ -n "${PAPNAME}" ] ; then fi if [ "${DEBUG}" = yes ] ; then opts="$opts debug" - chatdbg="-v" fi if [ ${DEMAND} = yes ] ; then -- cgit v1.2.1