aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-04-15 02:35:32 +0000
committerBill Nottingham <notting@redhat.com>2002-04-15 02:35:32 +0000
commit106379bcb8f65193f9105d2f5477de9e0b65337a (patch)
tree7af7457489d4e9db3a9ff22b0111d956f3fb6c0d /sysconfig
parent275d1b787db84bfe45e4ed3f87dba342686e1bdf (diff)
downloadinitscripts-106379bcb8f65193f9105d2f5477de9e0b65337a.tar
initscripts-106379bcb8f65193f9105d2f5477de9e0b65337a.tar.gz
initscripts-106379bcb8f65193f9105d2f5477de9e0b65337a.tar.bz2
initscripts-106379bcb8f65193f9105d2f5477de9e0b65337a.tar.xz
initscripts-106379bcb8f65193f9105d2f5477de9e0b65337a.zip
make sure chatdbg is set before using it (#63448)
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup-ppp7
1 files changed, 5 insertions, 2 deletions
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