3 # $Id: ip-up,v 1.2 1999/07/13 12:49:35 misiek Exp $
4 # This file should not be modified
6 # This script is run by the pppd after the link is established.
7 # It uses run-parts to run scripts in /etc/ppp/ip-up.d, so to add routes,
8 # set IP address, run the mailq etc. you should create script(s) there.
10 # Be aware that other packages may include /etc/ppp/ip-up.d scripts (named
11 # after that package), so choose local script names with that in mind.
13 # This script is called with the following arguments:
15 # $1 Interface name ppp0
17 # $3 The link speed 38400
18 # $4 Local IP number 12.34.56.78
19 # $5 Peer IP number 12.34.56.99
20 # $6 Optional ``ipparam'' value foo
22 # The environment is cleared before executing this script
23 # so the path must be reset
24 PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
26 # These variables are for the use of the scripts run by run-parts
33 export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE 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=`/usr/bin/basename "$2"`
44 echo "$REALDEVICE" > /var/run/ppp-$LOGDEVICE.dev
46 # Main Script starts here
47 run-parts /etc/ppp/ip-up.d
49 /etc/sysconfig/network-scripts/ifup-post ifcfg-${LOGDEVICE}