summaryrefslogtreecommitdiff
path: root/recipes-connectivity/ppp/files/init.patch
diff options
context:
space:
mode:
authorJeff Hatch <jhatch@multitech.com>2020-06-04 14:23:47 -0500
committerJeff Hatch <jhatch@multitech.com>2020-06-04 14:23:47 -0500
commit2fc1c8f4367fa674940f64927252fd6349a2d63b (patch)
treeeb08d052d64d0814ea1cfc75664b64be68eaffbb /recipes-connectivity/ppp/files/init.patch
parente26f94e3f97b755652327f5652ea32f9ebf2b57b (diff)
parente919ef1e33c2cb56856cdbd22792a3bc3f36341d (diff)
downloadmeta-mlinux-atmel-2fc1c8f4367fa674940f64927252fd6349a2d63b.tar.gz
meta-mlinux-atmel-2fc1c8f4367fa674940f64927252fd6349a2d63b.tar.bz2
meta-mlinux-atmel-2fc1c8f4367fa674940f64927252fd6349a2d63b.zip
Merge branch 'test-split' into 'master'
Test split See merge request !1
Diffstat (limited to 'recipes-connectivity/ppp/files/init.patch')
-rw-r--r--recipes-connectivity/ppp/files/init.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/recipes-connectivity/ppp/files/init.patch b/recipes-connectivity/ppp/files/init.patch
deleted file mode 100644
index e74e981..0000000
--- a/recipes-connectivity/ppp/files/init.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-diff -Naru old/init new/init
---- old/init 2017-09-05 19:07:19.810885424 -0500
-+++ new/init 2017-09-05 19:08:05.106884083 -0500
-@@ -8,11 +8,29 @@
-
- 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
--
-+: ${PPPTIMEOUT:=60}
-+logger timeout is $PPPTIMEOUT
-+[ -f /etc/default/ppp ] && . /etc/default/ppp
- case "$1" in
- start)
-+ t0=($(cat /proc/uptime))
-+ if (( CHECKREGISTRATION == 1 )) ; then while : ; do
-+ REG=$(/usr/bin/radio-query --netreg)
-+ [[ $REG == "REGISTERED" ]] && break
-+ t1=($(cat /proc/uptime))
-+ diff=$(awk "BEGIN{print int($t1-$t0)}")
-+ logger -s "Modem not ready. Waited $diff of $PPPTIMEOUT seconds"
-+ if ((diff > PPPTIMEOUT)) ; then
-+ logger -s "Timed out waiting for modem registration"
-+ exit 1
-+ fi
-+ sleep 1
-+ done ; fi
-+
-+ logger "Starting up PPP link: pppd"
- echo -n "Starting up PPP link: pppd"
- if [ "$RUNFILE" = "1" ]; then
-+ logger "ppp_on_boot"
- /etc/ppp/ppp_on_boot
- else
- pppd call provider