3 # This file should not be modified
5 # This script is run by the pppd after the link is established.
7 # This script is called with the following arguments:
9 # $1 Interface name ppp0
11 # $3 The link speed 38400
12 # $4 Local IP number 12.34.56.78
13 # $5 Peer IP number 12.34.56.99
14 # $6 Optional ``ipparam'' value foo
18 # The environment is cleared before executing this script
19 # so the path must be reset
20 PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
22 # These variables are for the use of the scripts run by run-parts
29 export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
31 . /etc/rc.d/init.d/functions
32 . /lib/rc-scripts/functions.network
33 CONFIG="/etc/sysconfig/interfaces/ifcfg-$PPP_IPPARAM"
36 # as an additional convenience, $PPP_TTYNAME is set to the tty name,
37 # stripped of /dev/ (if present) for easier matching.
38 PPP_TTYNAME=$(basename "$PPP_TTY")
41 # Main Script starts here
42 [ -x /etc/ppp/ip-up.local ] && /etc/ppp/ip-up.local
44 run-parts /etc/sysconfig/interfaces/up.d/ppp
46 /lib/rc-scripts/ifup-post "$CONFIG"