aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1999-07-28 22:25:22 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1999-07-28 22:25:22 +0000
commit095815d7bdc06c2c6e37222fa6f5703150c6250b (patch)
tree2ead37cbad8b741707f537dfcef83585a7e943b7 /sysconfig/network-scripts
parent63428a4bae5b5ecbd75e7f8f988234ca4dbf531d (diff)
downloadinitscripts-095815d7bdc06c2c6e37222fa6f5703150c6250b.tar
initscripts-095815d7bdc06c2c6e37222fa6f5703150c6250b.tar.gz
initscripts-095815d7bdc06c2c6e37222fa6f5703150c6250b.tar.bz2
initscripts-095815d7bdc06c2c6e37222fa6f5703150c6250b.tar.xz
initscripts-095815d7bdc06c2c6e37222fa6f5703150c6250b.zip
first try at basic integrated wvdial support
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-ppp27
1 files changed, 19 insertions, 8 deletions
diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp
index ef3ec4bd..c987bb4d 100755
--- a/sysconfig/network-scripts/ifup-ppp
+++ b/sysconfig/network-scripts/ifup-ppp
@@ -75,20 +75,31 @@ if [ "${DEBUG}" = yes ] ; then
chatdbg="-v"
fi
-CHATSCRIPT=/etc/sysconfig/network-scripts/chat-$DEVNAME
-[ -f $CHATSCRIPT ] || {
- CHATSCRIPT=/etc/sysconfig/network-scripts/chat-$PARENTDEVNAME
-}
+if [ -z "$WVDIALSECT" ] ; then
+ CHATSCRIPT=/etc/sysconfig/network-scripts/chat-$DEVNAME
+ [ -f $CHATSCRIPT ] || {
+ CHATSCRIPT=/etc/sysconfig/network-scripts/chat-$PARENTDEVNAME
+ }
+else
+ CHATSCRIPT=
+fi
while : ; do
(logger -p daemon.info -t ifup-ppp \
"pppd started for $DEVICE on $MODEMPORT at $LINESPEED" &)&
> /var/run/ppp-$DEVICE.dev
- /usr/sbin/pppd -detach $opts $MODEMPORT $LINESPEED \
- remotename $DEVICE ipparam $DEVICE \
- ${PPPOPTIONS} \
- connect "/usr/sbin/chat $chatdbg -f $CHATSCRIPT"
+ if [ -n "$WVDIALSECT ] ; then
+ /usr/sbin/pppd -detach $opts $MODEMPORT $LINESPEED \
+ remotename $DEVICE ipparam $DEVICE \
+ ${PPPOPTIONS} \
+ connect "/usr/bin/wvdial --chat $WVDIALSECT"
+ else
+ /usr/sbin/pppd -detach $opts $MODEMPORT $LINESPEED \
+ remotename $DEVICE ipparam $DEVICE \
+ ${PPPOPTIONS} \
+ connect "/usr/sbin/chat $chatdbg -f $CHATSCRIPT"
+ fi
# exit if we're not supposed to persist or our lock file has disappeared
if [ "$PERSIST" != "yes" -o ! -f /var/run/ppp-$DEVICE.dev ]; then