Contents of /trunk/ppp/ip-up
Parent Directory | Revision Log
Revision 796 -
(show 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 | #!/bin/sh |
2 | |
3 | # 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 | # $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-up.d || exit |
14 | |
15 | for SCRIPT in *.sh ; do |
16 | . ./"${SCRIPT}" "$@" |
17 | done |