diff options
author | Mykyta Dorokhin <mykyta.dorokhin@globallogic.com> | 2016-09-23 00:39:10 +0300 |
---|---|---|
committer | Mykyta Dorokhin <mykyta.dorokhin@globallogic.com> | 2016-09-23 00:39:10 +0300 |
commit | 40b210d6b4c2d986529c450f67748dca56827095 (patch) | |
tree | fa617e4ab3dc2b0b5baec82561a9b7268de39aec /recipes-core/multitech/config/ppp | |
parent | fe49b4a90e0ac1a4ef86789c9a5d637a23e4a090 (diff) | |
download | meta-mlinux-atmel-40b210d6b4c2d986529c450f67748dca56827095.tar.gz meta-mlinux-atmel-40b210d6b4c2d986529c450f67748dca56827095.tar.bz2 meta-mlinux-atmel-40b210d6b4c2d986529c450f67748dca56827095.zip |
ppp: add leu1 chat script
Diffstat (limited to 'recipes-core/multitech/config/ppp')
-rw-r--r-- | recipes-core/multitech/config/ppp/peers/leu1 | 11 | ||||
-rw-r--r-- | recipes-core/multitech/config/ppp/peers/leu1_chat | 22 |
2 files changed, 33 insertions, 0 deletions
diff --git a/recipes-core/multitech/config/ppp/peers/leu1 b/recipes-core/multitech/config/ppp/peers/leu1 new file mode 100644 index 0000000..993b33a --- /dev/null +++ b/recipes-core/multitech/config/ppp/peers/leu1 @@ -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/leu1_chat' diff --git a/recipes-core/multitech/config/ppp/peers/leu1_chat b/recipes-core/multitech/config/ppp/peers/leu1_chat new file mode 100644 index 0000000..942b1ff --- /dev/null +++ b/recipes-core/multitech/config/ppp/peers/leu1_chat @@ -0,0 +1,22 @@ +SAY "LEU1 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=3,"IP","internet"' +SAY "Dialing...\n" +OK 'ATD*99***3#' +SAY "Waiting for CONNECT...\n" +TIMEOUT 120 +CONNECT '' +SAY "Connected\n" |