From ae8a1898ba32e87cd715461b3310f6ed7cf4de05 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 8 Feb 2001 05:05:36 +0000 Subject: fix detection of chat script name (hopefully) --- sysconfig/network-scripts/ifup-ppp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sysconfig') 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" -- cgit v1.2.1