aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown-ppp
diff options
context:
space:
mode:
authorThan Ngo <than@redhat.com>2001-06-22 13:28:41 +0000
committerThan Ngo <than@redhat.com>2001-06-22 13:28:41 +0000
commita3530cb7cbcc75341c8835a5fa34313631db8062 (patch)
treebcfaf5b6768d86fe66cb1d352a8e8968698a3129 /sysconfig/network-scripts/ifdown-ppp
parentab2eaa4b07aeb0a24609219d53c55031abce4172 (diff)
downloadinitscripts-a3530cb7cbcc75341c8835a5fa34313631db8062.tar
initscripts-a3530cb7cbcc75341c8835a5fa34313631db8062.tar.gz
initscripts-a3530cb7cbcc75341c8835a5fa34313631db8062.tar.bz2
initscripts-a3530cb7cbcc75341c8835a5fa34313631db8062.tar.xz
initscripts-a3530cb7cbcc75341c8835a5fa34313631db8062.zip
* add support xDSLr5-92
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}