diff options
Diffstat (limited to 'recipes-connectivity/ppp/files')
| -rw-r--r-- | recipes-connectivity/ppp/files/default | 8 | ||||
| -rw-r--r-- | recipes-connectivity/ppp/files/init.patch | 34 | ||||
| -rw-r--r-- | recipes-connectivity/ppp/files/poff.patch | 12 |
3 files changed, 0 insertions, 54 deletions
diff --git a/recipes-connectivity/ppp/files/default b/recipes-connectivity/ppp/files/default deleted file mode 100644 index 6cc92df..0000000 --- a/recipes-connectivity/ppp/files/default +++ /dev/null @@ -1,8 +0,0 @@ -# Check to see if the SIM is registered before using ppp. -# Need this if using a cellular connection. -CHECKREGISTRATION=1 -# Note that boot will not complete until -# ppp completes, and the PPPTIMEOUT is the -# maximum wait time for the SIM to register -# for cellular PPP. -PPPTIMEOUT=60 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 diff --git a/recipes-connectivity/ppp/files/poff.patch b/recipes-connectivity/ppp/files/poff.patch deleted file mode 100644 index 2385886..0000000 --- a/recipes-connectivity/ppp/files/poff.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naru old/poff new/poff ---- old/poff 2017-09-05 19:07:11.630885666 -0500 -+++ new/poff 2017-09-05 19:08:09.586883950 -0500 -@@ -1,7 +1,7 @@ - #!/bin/sh - - # Lets see how many pppds are running.... --set -- `cat /var/run/ppp*.pid 2>/dev/null` -+set -- `cat /var/run/ppp[0-9]*.pid 2>/dev/null` - - case $# in - 0) # pppd only creates a pid file once ppp is up, so let's try killing pppd |
