From e243c30f04c18722dc65effe6d4f275a3f35de46 Mon Sep 17 00:00:00 2001 From: Jesse Gilles Date: Tue, 4 Nov 2014 11:51:34 -0600 Subject: initial commit of mLinux layer --- recipes-core/multitech/config/ppp/chap-secrets | 3 +++ recipes-core/multitech/config/ppp/options | 22 +++++++++++++++++++ recipes-core/multitech/config/ppp/pap-secrets | 3 +++ recipes-core/multitech/config/ppp/peers/cdma | 9 ++++++++ recipes-core/multitech/config/ppp/peers/cdma_chat | 18 ++++++++++++++++ recipes-core/multitech/config/ppp/peers/gsm | 11 ++++++++++ recipes-core/multitech/config/ppp/peers/gsm_chat | 26 +++++++++++++++++++++++ 7 files changed, 92 insertions(+) create mode 100644 recipes-core/multitech/config/ppp/chap-secrets create mode 100644 recipes-core/multitech/config/ppp/options create mode 100644 recipes-core/multitech/config/ppp/pap-secrets create mode 100644 recipes-core/multitech/config/ppp/peers/cdma create mode 100644 recipes-core/multitech/config/ppp/peers/cdma_chat create mode 100644 recipes-core/multitech/config/ppp/peers/gsm create mode 100644 recipes-core/multitech/config/ppp/peers/gsm_chat (limited to 'recipes-core/multitech/config/ppp') diff --git a/recipes-core/multitech/config/ppp/chap-secrets b/recipes-core/multitech/config/ppp/chap-secrets new file mode 100644 index 0000000..60efe8f --- /dev/null +++ b/recipes-core/multitech/config/ppp/chap-secrets @@ -0,0 +1,3 @@ +# Secrets for authentication using CHAP +# client server secret IP addresses +* * "" * diff --git a/recipes-core/multitech/config/ppp/options b/recipes-core/multitech/config/ppp/options new file mode 100644 index 0000000..34654c1 --- /dev/null +++ b/recipes-core/multitech/config/ppp/options @@ -0,0 +1,22 @@ +# Select tty device +# +# First modem AT command port (symlink to actual device) +/dev/modem_at0 + +# Uncomment below to run in foreground +#nodetach + +# Uncomment below to emit debug +#debug + +# Uncomment to keep pppd up if the connection terminates +#persist +# Uncomment for unlimited connection attempts +#maxfail 0 + +# disable logging to /etc/ppp/connect-errors +# and only log to syslog +logfile /dev/null + +lock + diff --git a/recipes-core/multitech/config/ppp/pap-secrets b/recipes-core/multitech/config/ppp/pap-secrets new file mode 100644 index 0000000..f782b4a --- /dev/null +++ b/recipes-core/multitech/config/ppp/pap-secrets @@ -0,0 +1,3 @@ +# Secrets for authentication using PAP +# client server secret IP addresses +* * "" * diff --git a/recipes-core/multitech/config/ppp/peers/cdma b/recipes-core/multitech/config/ppp/peers/cdma new file mode 100644 index 0000000..3fc231f --- /dev/null +++ b/recipes-core/multitech/config/ppp/peers/cdma @@ -0,0 +1,9 @@ +linkname ppp0 +230400 +defaultroute +replacedefaultroute +usepeerdns +noauth +crtscts +novj +connect '/usr/sbin/chat -v -t 90 -f /etc/ppp/peers/cdma_chat' diff --git a/recipes-core/multitech/config/ppp/peers/cdma_chat b/recipes-core/multitech/config/ppp/peers/cdma_chat new file mode 100644 index 0000000..6ff750e --- /dev/null +++ b/recipes-core/multitech/config/ppp/peers/cdma_chat @@ -0,0 +1,18 @@ +SAY "CDMA chat\n" +ECHO OFF +ABORT 'NO DIAL TONE' +ABORT 'NO DIALTONE' +ABORT 'NO ANSWER' +ABORT 'NO CARRIER' +ABORT 'DELAYED' +ABORT 'VOICE' +ABORT 'BUSY' +'' 'AT' +OK 'ATZ' +OK 'AT+CSQ' +SAY "Dialing...\n" +OK 'ATD#777' +SAY "Waiting for CONNECT...\n" +TIMEOUT 120 +CONNECT '' +SAY "Connected\n" diff --git a/recipes-core/multitech/config/ppp/peers/gsm b/recipes-core/multitech/config/ppp/peers/gsm new file mode 100644 index 0000000..d23957e --- /dev/null +++ b/recipes-core/multitech/config/ppp/peers/gsm @@ -0,0 +1,11 @@ +linkname ppp0 +230400 +defaultroute +replacedefaultroute +usepeerdns +ipcp-max-failure 10 +ipcp-restart 10 +noauth +crtscts +novj +connect '/usr/sbin/chat -v -t 90 -f /etc/ppp/peers/gsm_chat' diff --git a/recipes-core/multitech/config/ppp/peers/gsm_chat b/recipes-core/multitech/config/ppp/peers/gsm_chat new file mode 100644 index 0000000..5e18e05 --- /dev/null +++ b/recipes-core/multitech/config/ppp/peers/gsm_chat @@ -0,0 +1,26 @@ +SAY "GSM chat\n" +ECHO OFF +ABORT 'NO DIAL TONE' +ABORT 'NO DIALTONE' +ABORT 'NO ANSWER' +ABORT 'NO CARRIER' +ABORT 'DELAYED' +ABORT 'VOICE' +ABORT 'BUSY' +'' 'AT' +OK 'ATZ' +OK 'AT+CSQ' +# ---------------------------------- +# Set the APN for your provider here +# ---------------------------------- +#OK 'AT+CGDCONT=1,"IP","proxy"' +#OK 'AT+CGDCONT=1,"IP","ISP.CINGULAR"' +#OK 'AT+CGDCONT=1,"IP","internet2.voicestream.com"' +OK 'AT+CGDCONT=1,"IP","internet"' +SAY "Dialing...\n" +#OK 'ATD*99#' +OK 'ATD*99***1#' +SAY "Waiting for CONNECT...\n" +TIMEOUT 120 +CONNECT '' +SAY "Connected\n" -- cgit v1.2.3