diff options
Diffstat (limited to 'sysconfig/network-scripts/ifdown-ppp')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-ppp | 9 |
1 files changed, 7 insertions, 2 deletions
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 |