aboutsummaryrefslogtreecommitdiffstats
path: root/ppp/ip-down
blob: ae4f60a863d9b7f3cfe638e0bbe9455956d43d6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# This file should not be modified -- make local changes to
# /etc/ppp/ip-down.local instead

PATH=/sbin:/usr/sbin:/bin:/usr/bin
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}

exit 0