diff options
| author | John Klug <john.klug@multitech.com> | 2021-09-03 14:11:08 -0500 |
|---|---|---|
| committer | John Klug <john.klug@multitech.com> | 2021-12-29 06:58:41 -0600 |
| commit | 178e43a250542f2fdf9e7011d74ca7c37bfd3006 (patch) | |
| tree | 512828613f4d23e055e73f9bc0cf659cf891c3b6 /recipes-connectivity/ppp/files/init.patch | |
| parent | 867437dfe9ac43b9c822e08d300fb5a46926dd59 (diff) | |
| download | meta-mlinux-178e43a250542f2fdf9e7011d74ca7c37bfd3006.tar.gz meta-mlinux-178e43a250542f2fdf9e7011d74ca7c37bfd3006.tar.bz2 meta-mlinux-178e43a250542f2fdf9e7011d74ca7c37bfd3006.zip | |
Add wait for reset capability to ppp init script
Diffstat (limited to 'recipes-connectivity/ppp/files/init.patch')
| -rw-r--r-- | recipes-connectivity/ppp/files/init.patch | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/recipes-connectivity/ppp/files/init.patch b/recipes-connectivity/ppp/files/init.patch index 2d68474..2170711 100644 --- a/recipes-connectivity/ppp/files/init.patch +++ b/recipes-connectivity/ppp/files/init.patch @@ -1,11 +1,38 @@ -diff -Naru orig/init new/init ---- orig/init 2020-08-07 10:07:53.921964585 -0500 -+++ new/init 2020-08-11 09:01:48.118064508 -0500 -@@ -16,6 +16,7 @@ +diff -Ndru orig/init new/init +--- orig/init 2021-09-01 04:13:34.868409735 -0500 ++++ new/init 2021-09-01 10:19:44.940852572 -0500 +@@ -8,6 +8,11 @@ + + # Source function library. + . /etc/init.d/functions ++if [[ $RADIORESETWAIT == yes ]] ; then ++ . /usr/libexec/ppp/wait_for_reset ++else ++ function wait_for_reset { :; } ++fi + + 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 +@@ -15,7 +20,9 @@ + case "$1" in start) echo -n "Starting up PPP link: pppd" ++ wait_for_reset if [ "$RUNFILE" = "1" ]; then + logger "ppp_on_boot" /etc/ppp/ppp_on_boot else pppd call provider +@@ -40,10 +47,12 @@ + if [ "$RUNFILE" = "1" ]; then + poff + sleep 5 ++ wait_for_reset + /etc/ppp/ppp_on_boot + else + poff provider + sleep 5 ++ wait_for_reset + pppd call provider + fi + echo "." |
