summaryrefslogtreecommitdiff
path: root/recipes/multitech/config/ppp
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2010-04-30 10:50:57 -0500
committerJesse Gilles <jgilles@multitech.com>2010-04-30 10:50:57 -0500
commit0431f878edd38a1af264e5727e1e4d604f1a95fd (patch)
tree8fbede06fa2bf4835e9d032d1263ae120eb99837 /recipes/multitech/config/ppp
parent15028387890effa23f9cd0479b586f31c0752b88 (diff)
add Multi-Tech-specific recipes
Diffstat (limited to 'recipes/multitech/config/ppp')
-rw-r--r--recipes/multitech/config/ppp/chap-secrets3
-rw-r--r--recipes/multitech/config/ppp/options17
-rw-r--r--recipes/multitech/config/ppp/pap-secrets3
-rw-r--r--recipes/multitech/config/ppp/peers/cdma9
-rw-r--r--recipes/multitech/config/ppp/peers/cdma_chat18
-rw-r--r--recipes/multitech/config/ppp/peers/gsm10
-rw-r--r--recipes/multitech/config/ppp/peers/gsm_chat23
7 files changed, 83 insertions, 0 deletions
diff --git a/recipes/multitech/config/ppp/chap-secrets b/recipes/multitech/config/ppp/chap-secrets
new file mode 100644
index 0000000000..60efe8f54d
--- /dev/null
+++ b/recipes/multitech/config/ppp/chap-secrets
@@ -0,0 +1,3 @@
+# Secrets for authentication using CHAP
+# client server secret IP addresses
+* * "" *
diff --git a/recipes/multitech/config/ppp/options b/recipes/multitech/config/ppp/options
new file mode 100644
index 0000000000..1126510694
--- /dev/null
+++ b/recipes/multitech/config/ppp/options
@@ -0,0 +1,17 @@
+# Select tty device
+#
+# MTSMC-E
+/dev/ttyS1
+# MTSMC-H
+#/dev/ttyACM0
+# USB device
+#/dev/ttyUSB0
+
+# Uncomment below to run in foreground
+#nodetach
+
+# Uncomment below to emit debug
+#debug
+
+lock
+
diff --git a/recipes/multitech/config/ppp/pap-secrets b/recipes/multitech/config/ppp/pap-secrets
new file mode 100644
index 0000000000..f782b4a874
--- /dev/null
+++ b/recipes/multitech/config/ppp/pap-secrets
@@ -0,0 +1,3 @@
+# Secrets for authentication using PAP
+# client server secret IP addresses
+* * "" *
diff --git a/recipes/multitech/config/ppp/peers/cdma b/recipes/multitech/config/ppp/peers/cdma
new file mode 100644
index 0000000000..3fc231f21f
--- /dev/null
+++ b/recipes/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/multitech/config/ppp/peers/cdma_chat b/recipes/multitech/config/ppp/peers/cdma_chat
new file mode 100644
index 0000000000..6ff750e24a
--- /dev/null
+++ b/recipes/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/multitech/config/ppp/peers/gsm b/recipes/multitech/config/ppp/peers/gsm
new file mode 100644
index 0000000000..fed62a34b5
--- /dev/null
+++ b/recipes/multitech/config/ppp/peers/gsm
@@ -0,0 +1,10 @@
+linkname ppp0
+230400
+defaultroute
+replacedefaultroute
+usepeerdns
+ipcp-max-failure 4
+noauth
+crtscts
+novj
+connect '/usr/sbin/chat -v -t 90 -f /etc/ppp/peers/gsm_chat'
diff --git a/recipes/multitech/config/ppp/peers/gsm_chat b/recipes/multitech/config/ppp/peers/gsm_chat
new file mode 100644
index 0000000000..88877775bb
--- /dev/null
+++ b/recipes/multitech/config/ppp/peers/gsm_chat
@@ -0,0 +1,23 @@
+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'
+#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"