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