3 # $Id: ip-up,v 1.2 1998/02/10 21:25:34 phil Exp $
5 # This script is run by the pppd after the link is established.
6 # It uses run-parts to run scripts in /etc/ppp/ip-up.d, so to add routes,
7 # set IP address, run the mailq etc. you should create script(s) there.
9 # Be aware that other packages may include /etc/ppp/ip-up.d scripts (named
10 # after that package), so choose local script names with that in mind.
12 # This script is called with the following arguments:
14 # $1 Interface name ppp0
16 # $3 The link speed 38400
17 # $4 Local IP number 12.34.56.78
18 # $5 Peer IP number 12.34.56.99
19 # $6 Optional ``ipparam'' value foo
21 # The environment is cleared before executing this script
22 # so the path must be reset
23 PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
25 # These variables are for the use of the scripts run by run-parts
32 export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
35 # as an additional convenience, $PPP_TTYNAME is set to the tty name,
36 # stripped of /dev/ (if present) for easier matching.
37 PPP_TTYNAME=`/usr/bin/basename "$2"`
40 # Main Script starts here
42 run-parts /etc/ppp/ip-up.d