diff options
Diffstat (limited to 'meta/recipes-connectivity')
-rwxr-xr-x | meta/recipes-connectivity/ppp/ppp-2.4.5/init | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/ppp/ppp-2.4.5/init b/meta/recipes-connectivity/ppp/ppp-2.4.5/init index 5b3b7abe2f..0c0136049b 100755 --- a/meta/recipes-connectivity/ppp/ppp-2.4.5/init +++ b/meta/recipes-connectivity/ppp/ppp-2.4.5/init | |||
@@ -6,6 +6,9 @@ | |||
6 | # rename the /etc/ppp/no_ppp_on_boot file to /etc/ppp/ppp_on_boot, and | 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. | 7 | # follow the instructions in the comments in that file. |
8 | 8 | ||
9 | # Source function library. | ||
10 | . /etc/init.d/functions | ||
11 | |||
9 | test -x /usr/sbin/pppd -a -f /etc/ppp/ppp_on_boot || exit 0 | 12 | 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 | 13 | if [ -x /etc/ppp/ppp_on_boot ]; then RUNFILE=1; fi |
11 | 14 | ||
@@ -28,6 +31,10 @@ case "$1" in | |||
28 | fi | 31 | fi |
29 | echo "." | 32 | echo "." |
30 | ;; | 33 | ;; |
34 | status) | ||
35 | status /usr/sbin/pppd; | ||
36 | exit $? | ||
37 | ;; | ||
31 | restart|force-reload) | 38 | restart|force-reload) |
32 | echo -n "Restarting PPP link: pppd" | 39 | echo -n "Restarting PPP link: pppd" |
33 | if [ "$RUNFILE" = "1" ]; then | 40 | if [ "$RUNFILE" = "1" ]; then |
@@ -42,7 +49,7 @@ case "$1" in | |||
42 | echo "." | 49 | echo "." |
43 | ;; | 50 | ;; |
44 | *) | 51 | *) |
45 | echo "Usage: /etc/init.d/ppp {start|stop|restart|force-reload}" | 52 | echo "Usage: /etc/init.d/ppp {start|stop|status|restart|force-reload}" |
46 | exit 1 | 53 | exit 1 |
47 | ;; | 54 | ;; |
48 | esac | 55 | esac |