From 95bfc5cd9e0295e73c2c7cbd007fc8a3c9f80ab5 Mon Sep 17 00:00:00 2001 From: Brandon Bayer Date: Thu, 13 Oct 2016 11:04:58 -0500 Subject: leu1:fix: chat script --- recipes-core/mlinux-scripts/mlinux-scripts-1.0/mlinux-set-apn | 2 +- recipes-core/multitech/config/ppp/peers/leu1_chat | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes-core/mlinux-scripts/mlinux-scripts-1.0/mlinux-set-apn b/recipes-core/mlinux-scripts/mlinux-scripts-1.0/mlinux-set-apn index 1c9b430..85839f8 100755 --- a/recipes-core/mlinux-scripts/mlinux-scripts-1.0/mlinux-set-apn +++ b/recipes-core/mlinux-scripts/mlinux-scripts-1.0/mlinux-set-apn @@ -32,7 +32,7 @@ leu1_chat_file=/etc/ppp/peers/leu1_chat sed -r -i "s/^OK\s+'AT\+CGDCONT=1,\"IP\",\"[^\"]*\"'$/OK 'AT\+CGDCONT=1,\"IP\",\"${apn}\"'/" $gsm_chat_file sed -r -i "s/^OK\s+'AT\+CGDCONT=3,\"IPV4V6\",\"[^\"]*\"'$/OK 'AT\+CGDCONT=3,\"IPV4V6\",\"${apn}\"'/" $lvw2_chat_file -sed -r -i "s/^OK\s+'AT\+CGDCONT=3,\"IP\",\"[^\"]*\"'$/OK 'AT\+CGDCONT=3,\"IP\",\"${apn}\"'/" $leu1_chat_file +sed -r -i "s/^OK\s+'AT\+CGDCONT=1,\"IPV4V6\",\"[^\"]*\"'$/OK 'AT\+CGDCONT=1,\"IPV4V6\",\"${apn}\"'/" $leu1_chat_file if [[ $? != 0 ]]; then echo "Failed to change APN" diff --git a/recipes-core/multitech/config/ppp/peers/leu1_chat b/recipes-core/multitech/config/ppp/peers/leu1_chat index 942b1ff..6f84008 100644 --- a/recipes-core/multitech/config/ppp/peers/leu1_chat +++ b/recipes-core/multitech/config/ppp/peers/leu1_chat @@ -13,9 +13,9 @@ OK 'AT+CSQ' # ---------------------------------- # Set the APN for your provider here # ---------------------------------- -OK 'AT+CGDCONT=3,"IP","internet"' +OK 'AT+CGDCONT=1,"IPV4V6","internet"' SAY "Dialing...\n" -OK 'ATD*99***3#' +OK 'ATD*99***1#' SAY "Waiting for CONNECT...\n" TIMEOUT 120 CONNECT '' -- cgit v1.2.3