summaryrefslogtreecommitdiff
path: root/meta/recipes-connectivity
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-29 16:27:03 +0000
commit12c4094ce118569f9518e1b0625d110251595ef0 (patch)
tree28a03c40a0dd59dd6a6d14b8c1da846e8c9589b2 /meta/recipes-connectivity
parentd290bbe6d9826fbcfa2e0a7624886284697ed7eb (diff)
downloadopenembedded-core-12c4094ce118569f9518e1b0625d110251595ef0.tar.gz
openembedded-core-12c4094ce118569f9518e1b0625d110251595ef0.tar.bz2
openembedded-core-12c4094ce118569f9518e1b0625d110251595ef0.zip
ppp: add status command
Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-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 @@
# rename the /etc/ppp/no_ppp_on_boot file to /etc/ppp/ppp_on_boot, and
# follow the instructions in the comments in that file.
+# Source function library.
+. /etc/init.d/functions
+
test -x /usr/sbin/pppd -a -f /etc/ppp/ppp_on_boot || exit 0
if [ -x /etc/ppp/ppp_on_boot ]; then RUNFILE=1; fi
@@ -28,6 +31,10 @@ case "$1" in
fi
echo "."
;;
+ status)
+ status /usr/sbin/pppd;
+ exit $?
+ ;;
restart|force-reload)
echo -n "Restarting PPP link: pppd"
if [ "$RUNFILE" = "1" ]; then
@@ -42,7 +49,7 @@ case "$1" in
echo "."
;;
*)
- echo "Usage: /etc/init.d/ppp {start|stop|restart|force-reload}"
+ echo "Usage: /etc/init.d/ppp {start|stop|status|restart|force-reload}"
exit 1
;;
esac