aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-02-08 05:05:36 +0000
committerBill Nottingham <notting@redhat.com>2001-02-08 05:05:36 +0000
commitae8a1898ba32e87cd715461b3310f6ed7cf4de05 (patch)
treec45d109b6f333347b9e11ff969e5edd2b32ca1e8
parent8669b47d92f6b232b96bbd3b11c377e324195021 (diff)
downloadinitscripts-ae8a1898ba32e87cd715461b3310f6ed7cf4de05.tar
initscripts-ae8a1898ba32e87cd715461b3310f6ed7cf4de05.tar.gz
initscripts-ae8a1898ba32e87cd715461b3310f6ed7cf4de05.tar.bz2
initscripts-ae8a1898ba32e87cd715461b3310f6ed7cf4de05.tar.xz
initscripts-ae8a1898ba32e87cd715461b3310f6ed7cf4de05.zip
fix detection of chat script name (hopefully)
-rwxr-xr-xsysconfig/network-scripts/ifup-ppp12
1 files changed, 7 insertions, 5 deletions
diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp
index 3ca00875..11e9e87b 100755
--- a/sysconfig/network-scripts/ifup-ppp
+++ b/sysconfig/network-scripts/ifup-ppp
@@ -59,11 +59,13 @@ if [ ! -f ${PEERCONF} ]; then
[ -f ${CHATSCRIPT} ] || {
CHATSCRIPT=/etc/sysconfig/network-scripts/chat-${PARENTDEVNAME}
}
- echo $"/etc/sysconfig/network-scripts/chat-${DEVNAME} does not exist"
- echo $"ifup-ppp for ${DEVNAME} exiting"
- logger -p daemon.info -t ifup-ppp \
- $"/etc/sysconfig/network-scripts/chat-${DEVNAME} does not exist for ${DEVICE}"
- exit 1
+ [ -f ${CHATSCRIPT} ] || {
+ echo $"/etc/sysconfig/network-scripts/chat-${DEVNAME} does not exist"
+ echo $"ifup-ppp for ${DEVNAME} exiting"
+ logger -p daemon.info -t ifup-ppp \
+ $"/etc/sysconfig/network-scripts/chat-${DEVNAME} does not exist for ${DEVICE}"
+ exit 1
+ }
fi
logger -s -p daemon.notice -t ifup-ppp \
$"Setting up a new ${PEERCONF} config file"