summaryrefslogtreecommitdiff
path: root/recipes-core/mlinux-scripts
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/mlinux-scripts
parentfe49b4a90e0ac1a4ef86789c9a5d637a23e4a090 (diff)
downloadmeta-mlinux-40b210d6b4c2d986529c450f67748dca56827095.tar.gz
meta-mlinux-40b210d6b4c2d986529c450f67748dca56827095.tar.bz2
meta-mlinux-40b210d6b4c2d986529c450f67748dca56827095.zip
ppp: add leu1 chat script
Diffstat (limited to 'recipes-core/mlinux-scripts')
-rwxr-xr-xrecipes-core/mlinux-scripts/mlinux-scripts-1.0/mlinux-set-apn4
-rw-r--r--recipes-core/mlinux-scripts/mlinux-scripts_1.0.bb2
2 files changed, 4 insertions, 2 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 65e01b8..1c9b430 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
@@ -28,15 +28,17 @@ fi
apn=$1
gsm_chat_file=/etc/ppp/peers/gsm_chat
lvw2_chat_file=/etc/ppp/peers/lvw2_chat
+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
if [[ $? != 0 ]]; then
echo "Failed to change APN"
exit 1
else
- echo "Set APN to \"${apn}\" in $gsm_chat_file and $lvw2_chat_file"
+ echo "Set APN to \"${apn}\" in $gsm_chat_file, $lvw2_chat_file and $leu1_chat_file"
fi
exit 0
diff --git a/recipes-core/mlinux-scripts/mlinux-scripts_1.0.bb b/recipes-core/mlinux-scripts/mlinux-scripts_1.0.bb
index efa8635..6b0d37f 100644
--- a/recipes-core/mlinux-scripts/mlinux-scripts_1.0.bb
+++ b/recipes-core/mlinux-scripts/mlinux-scripts_1.0.bb
@@ -2,6 +2,6 @@ DESCRIPTION = "Scripts to easily get started with common mLinux use cases"
require mlinux-scripts-1.0.inc
-PR = "r3"
+PR = "r4"
S = "${WORKDIR}/mlinux-scripts-${PV}"