Magellan Linux

Annotation of /trunk/ppp/ip-down

Parent Directory Parent Directory | Revision Log Revision Log


Revision 796 - (hide 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 niro 303 #!/bin/sh
2    
3 niro 796 # 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 niro 303 # $3 = speed
9 niro 796 # $4 = local IP address
10     # $5 = remote IP address
11     # $6 = ipparam (user specified parameter, see man pppd)
12 niro 303
13 niro 796 cd /etc/ppp/ip-down.d || exit
14 niro 303
15 niro 796 for SCRIPT in *.sh ; do
16     . ./"${SCRIPT}" "$@"
17     done