diff options
author | Michael K. Johnson <johnsonm@redhat.com> | 1999-08-13 20:10:06 +0000 |
---|---|---|
committer | Michael K. Johnson <johnsonm@redhat.com> | 1999-08-13 20:10:06 +0000 |
commit | 3ec78dca9e6dee50cda7e5aed7410a9c2104b04b (patch) | |
tree | 8e35ea11b990da6a0820d8aee40186640694bbca /sysconfig/network-scripts/ifup-ppp | |
parent | d77f3918fbdb6d51fa70ce3f22c45e5600645f2c (diff) | |
download | initscripts-3ec78dca9e6dee50cda7e5aed7410a9c2104b04b.tar initscripts-3ec78dca9e6dee50cda7e5aed7410a9c2104b04b.tar.gz initscripts-3ec78dca9e6dee50cda7e5aed7410a9c2104b04b.tar.bz2 initscripts-3ec78dca9e6dee50cda7e5aed7410a9c2104b04b.tar.xz initscripts-3ec78dca9e6dee50cda7e5aed7410a9c2104b04b.zip |
use new pppd
Diffstat (limited to 'sysconfig/network-scripts/ifup-ppp')
-rwxr-xr-x | sysconfig/network-scripts/ifup-ppp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp index ef5b0281..bb314aca 100755 --- a/sysconfig/network-scripts/ifup-ppp +++ b/sysconfig/network-scripts/ifup-ppp @@ -91,16 +91,17 @@ while : ; do (logger -p daemon.info -t ifup-ppp \ "pppd started for $DEVICE on $MODEMPORT at $LINESPEED" &)& - > /var/run/ppp-$DEVICE.dev if [ -n "$WVDIALSECT" ] ; then /usr/sbin/pppd -detach $opts $MODEMPORT $LINESPEED \ remotename $DEVICE ipparam $DEVICE \ ${PPPOPTIONS} \ + linkname $DEVICE \ connect "/usr/bin/wvdial --chat $WVDIALSECT" else /usr/sbin/pppd -detach $opts $MODEMPORT $LINESPEED \ remotename $DEVICE ipparam $DEVICE \ ${PPPOPTIONS} \ + linkname $DEVICE \ connect "/usr/sbin/chat $chatdbg -f $CHATSCRIPT" fi @@ -127,11 +128,13 @@ while : ; do sleep $timeout || { # sleep was killed rm -f /var/run/ppp-$DEVICE.dev + rm -f /var/run/ppp-$DEVICE.pid exit 0 } # exit if our lock file disappeared while we slept if [ ! -f /var/run/ppp-$DEVICE.dev ]; then + rm -f /var/run/ppp-$DEVICE.pid exit 0 fi done |