]> git.pld-linux.org Git - projects/rc-scripts.git/blame - ppp/auth-down
- add support for running inside vservers, the diff may seem huge but it's
[projects/rc-scripts.git] / ppp / auth-down
CommitLineData
763b88c2
AM
1#!/bin/sh
2#
ec8b15cb 3# $Id$
763b88c2
AM
4#
5# This script is run by the pppd _after_ the link is brought down.
6#
7# This script is called with the following arguments:
8# Arg Name Example
9# $1 Interface name ppp0
10# $2 Peer name
11# $3 User name
12# $4 The tty ttyS1
13# $5 The link speed 38400
14
15set +e
16
17# The environment is cleared before executing this script
18# so the path must be reset
19PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
20export PATH
21# These variables are for the use of the scripts run by run-parts
22PPP_IFACE="$1"
23PPP_PEER="$2"
24PPP_USER="$3"
25PPP_TTY="$4"
26PPP_SPEED="$5"
27export PPP_IFACE PPP_PEER PPP_USER PPP_TTY PPP_SPEED
28
29. /etc/rc.d/init.d/functions
30. /etc/sysconfig/network-scripts/functions.network
31CONFIG="$PPP_IPPARAM"
32source_config
33
34# as an additional convienince, $PPP_TTYNAME is set to the tty name,
35# stripped of /dev/ (if present) for easier matching.
36PPP_TTYNAME=$(basename "$PPP_TTY")
37export PPP_TTYNAME
38
39# Main Script starts here
40[ -x /etc/ppp/auth-down.local ] && /etc/ppp/auth-down.local
41
42exit 0
This page took 0.034572 seconds and 4 git commands to generate.