3 # $Id: ipx-down,v 1.2 2002/03/19 18:18:06 misiek Exp $
4 # This file should not be modified
6 # This script is run by the pppd after the link is established.
8 # This script is called with the following arguments:
10 # $1 Interface name ppp0
12 # $3 The link speed 38400
13 # $4 The network number ???
14 # $5 Local IPX node address ???
15 # $6 Remote IPX node address ???
16 # $7 Local IPX routing protocol ???
17 # $8 Remote IPX routing protocol ???
18 # $9 Local IPX router name ???
19 # $10 Remote IPX router name ???
20 # $11 Optional ``ipparam'' value foo
25 # The environment is cleared before executing this script
26 # so the path must be reset
27 PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
29 # These variables are for the use of the scripts run by run-parts
37 PPP_REMOTE_RPROTO="$8"
39 PPP_REMOTE_RNAME="$10"
43 export PPP_IFACE PPP_TTY PPP_SPEED PPP_NETWORK PPP_LOCAL PPP_REMOTE
44 export PPP_LOCAL_RPROTO PPP_REMOTE_RPROTO PPP_LOCAL_RNAME PPP_REMOTE_RNAME
45 export PPP_IPPARAM PPP_PID
47 . /etc/rc.d/init.d/functions
48 . /etc/sysconfig/network-scripts/functions.network
52 # as an additional convenience, $PPP_TTYNAME is set to the tty name,
53 # stripped of /dev/ (if present) for easier matching.
54 PPP_TTYNAME=$(basename "$PPP_TTY")
57 # Main Script starts here
58 [ -x /etc/ppp/ipx-down.local ] && /etc/ppp/ipx-down.local
60 run-parts /etc/sysconfig/interfaces/down.d/ipx