summaryrefslogtreecommitdiff
path: root/recipes-core/multitech
diff options
context:
space:
mode:
authorMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2016-09-23 00:39:10 +0300
committerMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2016-09-23 00:39:10 +0300
commit40b210d6b4c2d986529c450f67748dca56827095 (patch)
treefa617e4ab3dc2b0b5baec82561a9b7268de39aec /recipes-core/multitech
parentfe49b4a90e0ac1a4ef86789c9a5d637a23e4a090 (diff)
downloadmeta-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')
-rw-r--r--recipes-core/multitech/config/ppp/peers/leu111
-rw-r--r--recipes-core/multitech/config/ppp/peers/leu1_chat22
-rw-r--r--recipes-core/multitech/config_1.0.bb2
3 files changed, 34 insertions, 1 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"
diff --git a/recipes-core/multitech/config_1.0.bb b/recipes-core/multitech/config_1.0.bb
index ed93e64..383baed 100644
--- a/recipes-core/multitech/config_1.0.bb
+++ b/recipes-core/multitech/config_1.0.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "Provides default system config files and /var/config fs"
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
-PR = "r4"
+PR = "r5"
inherit update-rc.d