]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
ifup-ppp instructs pppd to create pppd-$DEVNAME.pid file, so in ifdown-ppp we also...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 9 Jan 2004 01:24:43 +0000 (01:24 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 9 Jan 2004 01:24:43 +0000 (01:24 +0000)
svn-id: @3140

sysconfig/network-scripts/ifdown-ppp

index 7e057b8d675d779d91a1772ea6dec9e4216d69e4..68f95c93ed81b86296046fdd8bc40b50ee686013 100755 (executable)
@@ -11,7 +11,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
 CONFIG=$1
 source_config
 
-if [ ! -f /var/run/ppp-$DEVICE.pid ]; then
+if [ ! -f /var/run/ppp-$DEVNAME.pid ]; then
     # ppp isn't running, or we didn't start it
     exit 0
 fi
@@ -24,7 +24,7 @@ if [ -z "$PID" ]; then
     exit 1
 fi
 
-rm -f /var/run/ppp-$DEVICE.pid
+rm -f /var/run/ppp-$DEVNAME.pid
 
 [ ! -d /proc/${PID} ] && exit 0
 
@@ -45,7 +45,7 @@ if [ ! -d /proc/${PID} ]; then
 fi
 
 kill -KILL ${PID} > /dev/null 2>&1
-logger -p daemon.info -t ifdown-ppp "ifdown-ppp unable to nicely kill pppd-$DEVICE" &
+logger -p daemon.info -t ifdown-ppp "ifdown-ppp unable to nicely kill pppd-$DEVICE (pppd-$DEVNAME)" &
 
 exit 1
 
This page took 0.094242 seconds and 4 git commands to generate.