1
--- ppp-2.4.0b4.orig/scripts/ip-up
2
+++ ppp-2.4.0b4/scripts/ip-up
6
+# $Id: ip-up,v 1.1 1997/12/16 11:37:26 phil Exp $
8
+# This script is run by the pppd after the link is established.
9
+# It should be used to add routes, set IP address, run the mailq
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
20
+# The environment is cleared before executing this script
21
+# so the path must be reset
22
+PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
24
+# 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
32
+# as an additional convienince, $PPP_TTYNAME is set to the tty name,
33
+# stripped of /dev/ (if present) for easier matching.
34
+PPP_TTYNAME=`/usr/bin/basename "$2"`
37
+# Main Script starts here
39
+run-parts /etc/ppp/ip-up.d
41
+# if pon was called with the "quick" arg, stop ppp now
42
+if [ -r /var/run/ppp-quick ]