Magellan Linux

Contents of /trunk/ppp/ip-down

Parent Directory Parent Directory | Revision Log Revision Log


Revision 796 - (show annotations) (download)
Mon May 11 09:39:21 2009 UTC (15 years ago) by niro
File size: 431 byte(s)
new ip up down from gentoo

1 #!/bin/sh
2
3 # This script is run by pppd after the link is brought down.
4 # It executes all the scripts available in /etc/ppp/ip-down.d directory,
5 # with the following parameters:
6 # $1 = interface name (e.g. ppp0)
7 # $2 = tty device
8 # $3 = speed
9 # $4 = local IP address
10 # $5 = remote IP address
11 # $6 = ipparam (user specified parameter, see man pppd)
12
13 cd /etc/ppp/ip-down.d || exit
14
15 for SCRIPT in *.sh ; do
16 . ./"${SCRIPT}" "$@"
17 done