aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown-ppp
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/ifdown-ppp')
-rwxr-xr-xsysconfig/network-scripts/ifdown-ppp7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown-ppp b/sysconfig/network-scripts/ifdown-ppp
index b629673c..9270de39 100755
--- a/sysconfig/network-scripts/ifdown-ppp
+++ b/sysconfig/network-scripts/ifdown-ppp
@@ -1,4 +1,4 @@
-#!/bin/bash
+#! /bin/bash
PATH=/sbin:/usr/sbin:/bin:/usr/bin
cd /etc/sysconfig/network-scripts
@@ -7,6 +7,11 @@ cd /etc/sysconfig/network-scripts
CONFIG=$1
source_config
+if [ "$TYPE" = "xDSL" -a -x /usr/sbin/adsl-stop ] ; then
+ adsl-stop /etc/sysconfig/network-scripts/$CONFIG
+ exit $?
+fi
+
if [ "${DEMAND}" = "yes" -a -f /var/run/ppp-${DEVICE}.pid ] ; then
PID=`head -1 /var/run/ppp-${DEVICE}.pid`
kill -TERM ${PID}