From be75c98a06d569fbaa2d86f92676af961795d094 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Fri, 21 Oct 2011 01:28:48 +0100 Subject: Add the mdkconf patch --- sysconfig/network-scripts/ifdown-ppp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sysconfig/network-scripts/ifdown-ppp') diff --git a/sysconfig/network-scripts/ifdown-ppp b/sysconfig/network-scripts/ifdown-ppp index fca64638..99b1b09e 100755 --- a/sysconfig/network-scripts/ifdown-ppp +++ b/sysconfig/network-scripts/ifdown-ppp @@ -4,10 +4,11 @@ cd /etc/sysconfig/network-scripts . ./network-functions CONFIG=$1 +[ -f "$CONFIG" ] || CONFIG=ifcfg-$1 source_config if [ "$TYPE" = "xDSL" ] && [ -x /usr/sbin/adsl-stop ] ; then - adsl-stop /etc/sysconfig/network-scripts/$CONFIG + adsl-stop exit $? fi @@ -25,7 +26,11 @@ if [ "${DEMAND}" = "yes" ] && [ -f /var/run/ppp-${CONFIG}.pid ] ; then exit 1 fi -file=/var/run/pppwatch-${DEVICE}.pid +if [ "$TYPE" = "ADSL" ]; then + file=/var/run/${DEVICE}.pid +else + file=/var/run/pppwatch-${DEVICE}.pid +fi if [ ! -f $file ]; then # ppp isn't running, or we didn't start it -- cgit v1.2.1