diff options
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 |