diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2014-03-03 16:27:30 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-05 15:50:21 +0000 |
commit | 3bd5c238bc17a41b8f5986865b44693d2e4492bf (patch) | |
tree | a8ad7572b9d7b8e982ddefcd686f90b81c82a622 /meta/recipes-connectivity/ppp/ppp/ip-up | |
parent | 5da3ba5457aa6c445d61bac10be37f2aa1548a28 (diff) | |
download | poky-3bd5c238bc17a41b8f5986865b44693d2e4492bf.tar.gz |
ppp: upgrade to 2.4.6
(From OE-Core rev: d05b1d06b5b8b84c2a40639ad28e31cd683f89a4)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/ppp/ppp/ip-up')
-rwxr-xr-x | meta/recipes-connectivity/ppp/ppp/ip-up | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/ppp/ppp/ip-up b/meta/recipes-connectivity/ppp/ppp/ip-up new file mode 100755 index 0000000000..fc2fae9fe0 --- /dev/null +++ b/meta/recipes-connectivity/ppp/ppp/ip-up | |||
@@ -0,0 +1,44 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # $Id: ip-up,v 1.2 1998/02/10 21:25:34 phil Exp $ | ||
4 | # | ||
5 | # This script is run by the pppd after the link is established. | ||
6 | # It uses run-parts to run scripts in /etc/ppp/ip-up.d, so to add routes, | ||
7 | # set IP address, run the mailq etc. you should create script(s) there. | ||
8 | # | ||
9 | # Be aware that other packages may include /etc/ppp/ip-up.d scripts (named | ||
10 | # after that package), so choose local script names with that in mind. | ||
11 | # | ||
12 | # This script is called with the following arguments: | ||
13 | # Arg Name Example | ||
14 | # $1 Interface name ppp0 | ||
15 | # $2 The tty ttyS1 | ||
16 | # $3 The link speed 38400 | ||
17 | # $4 Local IP number 12.34.56.78 | ||
18 | # $5 Peer IP number 12.34.56.99 | ||
19 | # $6 Optional ``ipparam'' value foo | ||
20 | |||
21 | # The environment is cleared before executing this script | ||
22 | # so the path must be reset | ||
23 | PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin | ||
24 | export PATH | ||
25 | # These variables are for the use of the scripts run by run-parts | ||
26 | PPP_IFACE="$1" | ||
27 | PPP_TTY="$2" | ||
28 | PPP_SPEED="$3" | ||
29 | PPP_LOCAL="$4" | ||
30 | PPP_REMOTE="$5" | ||
31 | PPP_IPPARAM="$6" | ||
32 | export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM | ||
33 | |||
34 | |||
35 | # as an additional convenience, $PPP_TTYNAME is set to the tty name, | ||
36 | # stripped of /dev/ (if present) for easier matching. | ||
37 | PPP_TTYNAME=`/usr/bin/basename "$2"` | ||
38 | export PPP_TTYNAME | ||
39 | |||
40 | # Main Script starts here | ||
41 | |||
42 | run-parts /etc/ppp/ip-up.d | ||
43 | |||
44 | # last line | ||