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