summaryrefslogtreecommitdiff
path: root/recipes-connectivity/ppp
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2021-09-03 11:06:15 -0500
committerJohn Klug <john.klug@multitech.com>2021-09-07 10:09:59 -0500
commitece7909613ea32e3a1f60a77b781f3109a97c046 (patch)
treeea2bf9d1aaaffdfda5700a3ef3ae291a5f5ef9eb /recipes-connectivity/ppp
parenta49350fb9745c54a0d8f9184994ca87ecbf4a79c (diff)
downloadmeta-mlinux-ece7909613ea32e3a1f60a77b781f3109a97c046.tar.gz
meta-mlinux-ece7909613ea32e3a1f60a77b781f3109a97c046.tar.bz2
meta-mlinux-ece7909613ea32e3a1f60a77b781f3109a97c046.zip
Fix space/tab character issues in init.patch
Diffstat (limited to 'recipes-connectivity/ppp')
-rw-r--r--recipes-connectivity/ppp/files/init.patch21
1 files changed, 13 insertions, 8 deletions
diff --git a/recipes-connectivity/ppp/files/init.patch b/recipes-connectivity/ppp/files/init.patch
index 2170711..5aacfae 100644
--- a/recipes-connectivity/ppp/files/init.patch
+++ b/recipes-connectivity/ppp/files/init.patch
@@ -1,16 +1,16 @@
-diff -Ndru orig/init new/init
+diff -Naru orig/init new/init
--- orig/init 2021-09-01 04:13:34.868409735 -0500
-+++ new/init 2021-09-01 10:19:44.940852572 -0500
++++ new/init 2021-09-03 11:00:53.480385352 -0500
@@ -8,6 +8,11 @@
-
+
# Source function library.
. /etc/init.d/functions
-+if [[ $RADIORESETWAIT == yes ]] ; then
++if [[ $RADIORESETWAIT == yes ]]
+ . /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 @@
@@ -23,13 +23,18 @@ diff -Ndru orig/init new/init
/etc/ppp/ppp_on_boot
else
pppd call provider
-@@ -40,10 +47,12 @@
- if [ "$RUNFILE" = "1" ]; then
+@@ -37,13 +44,15 @@
+ ;;
+ restart|force-reload)
+ echo -n "Restarting PPP link: pppd"
+- if [ "$RUNFILE" = "1" ]; then
++ if [ "$RUNFILE" = "1" ]; then
poff
sleep 5
+ wait_for_reset
/etc/ppp/ppp_on_boot
- else
+- else
++ else
poff provider
sleep 5
+ wait_for_reset