4 # This file should not be modified
6 # This script is run by the pppd _after_ the link is brought down.
8 # This script is called with the following arguments:
10 # $1 Interface name ppp0
12 # $3 The link speed 38400
13 # $4 Local IP number 12.34.56.78
14 # $5 Peer IP number 12.34.56.99
15 # $6 Optional ``ipparam'' value foo
19 # The environment is cleared before executing this script
20 # so the path must be reset
21 PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
23 # These variables are for the use of the scripts run by run-parts
30 export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
32 . /etc/rc.d/init.d/functions
33 . /lib/rc-scripts/functions.network
34 CONFIG="/etc/sysconfig/interfaces/ifcfg-$PPP_IPPARAM"
37 # as an additional convienince, $PPP_TTYNAME is set to the tty name,
38 # stripped of /dev/ (if present) for easier matching.
39 PPP_TTYNAME=$(basename "$PPP_TTY")
42 # Main Script starts here
43 [ -x /etc/ppp/ip-down.local ] && /etc/ppp/ip-down.local
45 run-parts /etc/sysconfig/interfaces/down.d/ppp
47 /lib/rc-scripts/ifdown-post "${CONFIG}"