summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/ppp
diff options
context:
space:
mode:
authorLi Wang <li.wang@windriver.com>2013-11-29 18:55:53 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-30 22:26:27 +0000
commitcb8e55cfb4e2c0a37ea8ea422195210756ae6110 (patch)
tree3ce0951bd1888988e04d48ab8f30374356672407 /meta/recipes-connectivity/ppp
parent3c182d22080e27ecdaf7a04e28caa84fafec5395 (diff)
downloadpoky-cb8e55cfb4e2c0a37ea8ea422195210756ae6110.tar.gz
ppp: add status command
(From OE-Core rev: 12c4094ce118569f9518e1b0625d110251595ef0) Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/ppp')
-rwxr-xr-xmeta/recipes-connectivity/ppp/ppp-2.4.5/init9
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
9test -x /usr/sbin/pppd -a -f /etc/ppp/ppp_on_boot || exit 0 12test -x /usr/sbin/pppd -a -f /etc/ppp/ppp_on_boot || exit 0
10if [ -x /etc/ppp/ppp_on_boot ]; then RUNFILE=1; fi 13if [ -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 ;;
48esac 55esac