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/ifdown-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/ifdown-ppp')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-ppp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifdown-ppp b/sysconfig/network-scripts/ifdown-ppp index 97cd04bc..a21e47f5 100755 --- a/sysconfig/network-scripts/ifdown-ppp +++ b/sysconfig/network-scripts/ifdown-ppp @@ -7,12 +7,12 @@ cd /etc/sysconfig/network-scripts CONFIG=$1 source_config -if [ ! -f /var/run/ppp-$DEVICE.dev ]; then +if [ ! -f /var/run/ppp-$DEVICE.pid ]; then # ppp isn't running, or we didn't start it exit 0 fi -file=/var/run/`cat /var/run/ppp-$DEVICE.dev`.pid +file=/var/run/ppp-$DEVICE.pid # signals ifup-ppp not to persist -- must do this before exiting if PPP # has not yet started ($file does not exist). @@ -22,7 +22,7 @@ if [ ! -f $file ]; then exit 0 fi -PID=`cat $file` +PID=`head -1 $file` if [ -z "$PID" ]; then exit 1 fi |