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
exit 1
fi
-rm -f /var/run/ppp-$DEVICE.pid
+rm -f /var/run/ppp-$DEVNAME.pid
[ ! -d /proc/${PID} ] && exit 0
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