1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 17:39:31 +00:00

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>
This commit is contained in:
Li Wang
2013-11-29 18:55:53 +08:00
committed by Richard Purdie
parent 3c182d2208
commit cb8e55cfb4
+8 -1
View File
@@ -6,6 +6,9 @@
# rename the /etc/ppp/no_ppp_on_boot file to /etc/ppp/ppp_on_boot, and # 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. # 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 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 if [ -x /etc/ppp/ppp_on_boot ]; then RUNFILE=1; fi
@@ -28,6 +31,10 @@ case "$1" in
fi fi
echo "." echo "."
;; ;;
status)
status /usr/sbin/pppd;
exit $?
;;
restart|force-reload) restart|force-reload)
echo -n "Restarting PPP link: pppd" echo -n "Restarting PPP link: pppd"
if [ "$RUNFILE" = "1" ]; then if [ "$RUNFILE" = "1" ]; then
@@ -42,7 +49,7 @@ case "$1" in
echo "." 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 exit 1
;; ;;
esac esac