diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2010-07-01 14:34:12 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:28:54 +0100 |
commit | 057d63096253b61551dbc2d0ea34a60f58987969 (patch) | |
tree | 5b860616fa619ca40b6702c715090a9b47b74edf /meta/packages/ppp/ppp-2.4.5/init | |
parent | 4cf75289108579ac2048178465c98e8c36f39038 (diff) | |
download | poky-057d63096253b61551dbc2d0ea34a60f58987969.tar.gz |
ppp: Upgraded to version 2.4.5
Removed some patches since they are already in latest package
Rebased some patches to fit ppp-2.4.5
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/packages/ppp/ppp-2.4.5/init')
-rwxr-xr-x | meta/packages/ppp/ppp-2.4.5/init | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/packages/ppp/ppp-2.4.5/init b/meta/packages/ppp/ppp-2.4.5/init new file mode 100755 index 0000000000..5b3b7abe2f --- /dev/null +++ b/meta/packages/ppp/ppp-2.4.5/init | |||
@@ -0,0 +1,50 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # /etc/init.d/ppp: start or stop PPP link. | ||
4 | # | ||
5 | # If you want PPP started on boot time (most dialup systems won't need it) | ||
6 | # rename the /etc/ppp/no_ppp_on_boot file to /etc/ppp/ppp_on_boot, and | ||
7 | # follow the instructions in the comments in that file. | ||
8 | |||
9 | test -x /usr/sbin/pppd -a -f /etc/ppp/ppp_on_boot || exit 0 | ||
10 | if [ -x /etc/ppp/ppp_on_boot ]; then RUNFILE=1; fi | ||
11 | |||
12 | case "$1" in | ||
13 | start) | ||
14 | echo -n "Starting up PPP link: pppd" | ||
15 | if [ "$RUNFILE" = "1" ]; then | ||
16 | /etc/ppp/ppp_on_boot | ||
17 | else | ||
18 | pppd call provider | ||
19 | fi | ||
20 | echo "." | ||
21 | ;; | ||
22 | stop) | ||
23 | echo -n "Shutting down PPP link: pppd" | ||
24 | if [ "$RUNFILE" = "1" ]; then | ||
25 | poff | ||
26 | else | ||
27 | poff provider | ||
28 | fi | ||
29 | echo "." | ||
30 | ;; | ||
31 | restart|force-reload) | ||
32 | echo -n "Restarting PPP link: pppd" | ||
33 | if [ "$RUNFILE" = "1" ]; then | ||
34 | poff | ||
35 | sleep 5 | ||
36 | /etc/ppp/ppp_on_boot | ||
37 | else | ||
38 | poff provider | ||
39 | sleep 5 | ||
40 | pppd call provider | ||
41 | fi | ||
42 | echo "." | ||
43 | ;; | ||
44 | *) | ||
45 | echo "Usage: /etc/init.d/ppp {start|stop|restart|force-reload}" | ||
46 | exit 1 | ||
47 | ;; | ||
48 | esac | ||
49 | |||
50 | exit 0 | ||