From 3bd5c238bc17a41b8f5986865b44693d2e4492bf Mon Sep 17 00:00:00 2001 From: Hongxu Jia Date: Mon, 3 Mar 2014 16:27:30 +0800 Subject: ppp: upgrade to 2.4.6 (From OE-Core rev: d05b1d06b5b8b84c2a40639ad28e31cd683f89a4) Signed-off-by: Hongxu Jia Signed-off-by: Richard Purdie --- meta/recipes-connectivity/ppp/ppp/init | 57 ++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100755 meta/recipes-connectivity/ppp/ppp/init (limited to 'meta/recipes-connectivity/ppp/ppp/init') diff --git a/meta/recipes-connectivity/ppp/ppp/init b/meta/recipes-connectivity/ppp/ppp/init new file mode 100755 index 0000000000..0c0136049b --- /dev/null +++ b/meta/recipes-connectivity/ppp/ppp/init @@ -0,0 +1,57 @@ +#!/bin/sh +# +# /etc/init.d/ppp: start or stop PPP link. +# +# If you want PPP started on boot time (most dialup systems won't need it) +# 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 + +case "$1" in + start) + echo -n "Starting up PPP link: pppd" + if [ "$RUNFILE" = "1" ]; then + /etc/ppp/ppp_on_boot + else + pppd call provider + fi + echo "." + ;; + stop) + echo -n "Shutting down PPP link: pppd" + if [ "$RUNFILE" = "1" ]; then + poff + else + poff provider + fi + echo "." + ;; + status) + status /usr/sbin/pppd; + exit $? + ;; + restart|force-reload) + echo -n "Restarting PPP link: pppd" + if [ "$RUNFILE" = "1" ]; then + poff + sleep 5 + /etc/ppp/ppp_on_boot + else + poff provider + sleep 5 + pppd call provider + fi + echo "." + ;; + *) + echo "Usage: /etc/init.d/ppp {start|stop|status|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 -- cgit v1.2.3-54-g00ecf