Annotation of /trunk/ppp/ip-up
Parent Directory | Revision Log
Revision 796 -
(hide annotations)
(download)
Mon May 11 09:39:21 2009 UTC (15 years, 4 months ago) by niro
File size: 426 byte(s)
Mon May 11 09:39:21 2009 UTC (15 years, 4 months ago) by niro
File size: 426 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 established. |
4 | # It executes all the scripts available in /etc/ppp/ip-up.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-up.d || exit |
14 | niro | 303 | |
15 | niro | 796 | for SCRIPT in *.sh ; do |
16 | . ./"${SCRIPT}" "$@" | ||
17 | done |