diff options
author | Bill Nottingham <notting@redhat.com> | 2001-02-08 05:05:36 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-02-08 05:05:36 +0000 |
commit | ae8a1898ba32e87cd715461b3310f6ed7cf4de05 (patch) | |
tree | c45d109b6f333347b9e11ff969e5edd2b32ca1e8 /sysconfig | |
parent | 8669b47d92f6b232b96bbd3b11c377e324195021 (diff) | |
download | initscripts-ae8a1898ba32e87cd715461b3310f6ed7cf4de05.tar initscripts-ae8a1898ba32e87cd715461b3310f6ed7cf4de05.tar.gz initscripts-ae8a1898ba32e87cd715461b3310f6ed7cf4de05.tar.bz2 initscripts-ae8a1898ba32e87cd715461b3310f6ed7cf4de05.tar.xz initscripts-ae8a1898ba32e87cd715461b3310f6ed7cf4de05.zip |
fix detection of chat script name (hopefully)
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifup-ppp | 12 |
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" |