aboutsummaryrefslogtreecommitdiffstats
path: root/ppp/ip-down
diff options
context:
space:
mode:
Diffstat (limited to 'ppp/ip-down')
-rw-r--r--ppp/ip-down5
1 files changed, 1 insertions, 4 deletions
diff --git a/ppp/ip-down b/ppp/ip-down
index ae4f60a8..3c86f2a6 100644
--- a/ppp/ip-down
+++ b/ppp/ip-down
@@ -7,12 +7,9 @@ export PATH
LOGDEVICE=$6
REALDEVICE=$1
-NETWORKDIR=/etc/sysconfig/network-scripts
[ -x /etc/ppp/ip-down.local ] && /etc/ppp/ip-down.local "$@"
-# get Nickname name of device
-[ -f /etc/ppp/$LOGDEVICE ] && . /etc/ppp/$LOGDEVICE
-[ -f $NETWORKDIR/${NICKNAME} ] && $NETWORKDIR/ifdown-post ${NICKNAME}
+/etc/sysconfig/network-scripts/ifdown-post ifcfg-${LOGDEVICE}
exit 0