summaryrefslogtreecommitdiff
path: root/recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz')
-rw-r--r--recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz67
1 files changed, 67 insertions, 0 deletions
diff --git a/recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz b/recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz
new file mode 100644
index 0000000..76f3aae
--- /dev/null
+++ b/recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz
@@ -0,0 +1,67 @@
+#----------------------------------------
+# Do NOT use this CHAT script with
+# Verizon wireless. It will bind
+# this SIM and device to the wrong
+# APN.
+#
+# mlinux-set-apn can be used to set
+# the APN.
+#
+# mlinux-switch-cell-fw can be used
+# to switch the firmware settings
+# and set the correct CHAT script.
+#
+# # mlinux-set-apn "APN"
+#
+# And to switch the firmware to Verizon:
+# # mlinux-switch-cell-fw 1
+#
+# And to switch to AT&T:
+# # mlinux-switch-cell-fw 0
+#----------------------------------------
+SAY "L4N1 chat not for Verizon\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
+# Note that a comment starting with
+# #MT AT+CGDCONT=
+# will be interpretted by
+# /usr/libexec/ppp/chat_wrapper
+# as the intended context
+# setting. Make the context number
+# (after the =) match the
+# dialer number context.
+# If the context changes, ppp/chat_wrapper
+# handles disconnecting the modem
+# from the network during the update,
+# which is required
+# by some modem firmware.
+# The chat script will be executed
+# after the ppp/chat_wrapper script
+# re-registers the modem.
+# The context will only be set if the
+# modem settings do not match the
+# settings here.
+# Lines starting with # MT are ignored.
+# ----------------------------------
+# MT AT+CGDCONT=1,"IP","proxy"
+# MT AT+CGDCONT=1,"IP","ISP.CINGULAR"
+# MT AT+CGDCONT=1,"IP","internet2.voicestream.com"
+#MT AT+CGDCONT=1,"IP","phone"
+OK 'AT+CGDCONT?'
+SAY "Dialing...\n"
+OK 'ATD*99***1#'
+SAY "Waiting for CONNECT...\n"
+TIMEOUT 120
+CONNECT ''
+SAY "Connected\n"