]> git.pld-linux.org Git - projects/rc-scripts.git/blame - ppp/ipx-down
update vim ignores
[projects/rc-scripts.git] / ppp / ipx-down
CommitLineData
763b88c2
AM
1#!/bin/sh
2#
ec8b15cb 3# $Id$
763b88c2
AM
4# This file should not be modified
5#
6# This script is run by the pppd after the link is established.
7#
8# This script is called with the following arguments:
5e6dfc29
JR
9# Arg Name Example
10# $1 Interface name ppp0
11# $2 The tty ttyS1
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
21# $12 PPPD pid 1276
763b88c2
AM
22
23set +e
24
5e6dfc29 25# The environment is cleared before executing this script
763b88c2
AM
26# so the path must be reset
27PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
28export PATH
29# These variables are for the use of the scripts run by run-parts
30PPP_IFACE="$1"
31PPP_TTY="$2"
32PPP_SPEED="$3"
33PPP_NETWORK="$4"
34PPP_LOCAL="$5"
35PPP_REMOTE="$6"
36PPP_LOCAL_RPROTO="$7"
37PPP_REMOTE_RPROTO="$8"
38PPP_LOCAL_RNAME="$9"
39PPP_REMOTE_RNAME="$10"
40PPP_IPPARAM="$11"
41PPP_PID="$12"
42
43export PPP_IFACE PPP_TTY PPP_SPEED PPP_NETWORK PPP_LOCAL PPP_REMOTE
44export PPP_LOCAL_RPROTO PPP_REMOTE_RPROTO PPP_LOCAL_RNAME PPP_REMOTE_RNAME
45export PPP_IPPARAM PPP_PID
46
47. /etc/rc.d/init.d/functions
f67ce454 48. /lib/rc-scripts/functions.network
763b88c2
AM
49CONFIG="$PPP_IPPARAM"
50source_config
51
52# as an additional convenience, $PPP_TTYNAME is set to the tty name,
53# stripped of /dev/ (if present) for easier matching.
54PPP_TTYNAME=$(basename "$PPP_TTY")
55export PPP_TTYNAME
56
57# Main Script starts here
5e6dfc29 58[ -x /etc/ppp/ipx-down.local ] && /etc/ppp/ipx-down.local
763b88c2
AM
59
60run-parts /etc/sysconfig/interfaces/down.d/ipx
61
62exit 0
This page took 0.14742 seconds and 4 git commands to generate.