From 75dd8c6cf39c1e6abbe36bb8c93f9ae87ff83307 Mon Sep 17 00:00:00 2001 From: Jose Diaz de Grenu de Pedro Date: Thu, 12 Nov 2015 16:39:23 +0100 Subject: [PATCH] ppp: add pppd config file for cellular devices Signed-off-by: Javier Viguera --- .../ppp/ppp-2.4.7/mm_cellular | 26 +++++++++++++++++++ .../ppp/ppp_2.4.7.bbappend | 8 ++++++ 2 files changed, 34 insertions(+) create mode 100644 meta-digi-dey/recipes-connectivity/ppp/ppp-2.4.7/mm_cellular create mode 100644 meta-digi-dey/recipes-connectivity/ppp/ppp_2.4.7.bbappend diff --git a/meta-digi-dey/recipes-connectivity/ppp/ppp-2.4.7/mm_cellular b/meta-digi-dey/recipes-connectivity/ppp/ppp-2.4.7/mm_cellular new file mode 100644 index 000000000..8329abef5 --- /dev/null +++ b/meta-digi-dey/recipes-connectivity/ppp/ppp-2.4.7/mm_cellular @@ -0,0 +1,26 @@ +# Assumes that your IP address is allocated dynamically by the ISP. +noipdefault + +# Try to get the name server addresses from the ISP. +usepeerdns + +# Use this connection as the default route. +defaultroute + +# Replace default route if already exists. +replacedefaultroute + +# Makes pppd "dial again" when the connection is lost. +persist + +# Do not ask the remote to authenticate. +noauth + +# Detach 'pppd' from its controlling terminal +updetach + +# Don't use the modem control lines +local + +# Lock the device to ensure exclusive access +lock diff --git a/meta-digi-dey/recipes-connectivity/ppp/ppp_2.4.7.bbappend b/meta-digi-dey/recipes-connectivity/ppp/ppp_2.4.7.bbappend new file mode 100644 index 000000000..a2520ecb4 --- /dev/null +++ b/meta-digi-dey/recipes-connectivity/ppp/ppp_2.4.7.bbappend @@ -0,0 +1,8 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" + +SRC_URI += "file://mm_cellular" + +do_install_append () { + mkdir -p ${D}${sysconfdir}/ppp/peers + install -m 0755 ${WORKDIR}/mm_cellular ${D}${sysconfdir}/ppp/peers/mm_cellular +}