ppp: add pppd config file for cellular devices

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Jose Diaz de Grenu de Pedro 2015-11-12 16:39:23 +01:00 committed by Javier Viguera
parent db1f1de590
commit 75dd8c6cf3
2 changed files with 34 additions and 0 deletions

View File

@ -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

View File

@ -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
}