summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorMhd Sulhan <m.shulhan@gmail.com>2014-12-22 10:50:57 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2015-01-12 15:43:50 +0100
commit86a44623953d8148fdc4f1dde0d3e041c8f2f54e (patch)
tree6c9d975cf2225c415a1eee317f8d94a4169df4c2 /src/lib
parent8b3178a79ffbf82313a316ba90270192e374f281 (diff)
downloadnetctl-86a44623953d8148fdc4f1dde0d3e041c8f2f54e.tar.gz
netctl-86a44623953d8148fdc4f1dde0d3e041c8f2f54e.tar.xz
mobile_ppp: do not call CGDCONT if AccessPointName is not set.
Some mobile does not use APN to connect, this commit allow connection established with empty APN.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/connections/mobile_ppp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/connections/mobile_ppp b/src/lib/connections/mobile_ppp
index 785457d..40750d8 100644
--- a/src/lib/connections/mobile_ppp
+++ b/src/lib/connections/mobile_ppp
@@ -64,7 +64,7 @@ TIMEOUT 3
GPRSonly) printf "\^SYSCFG=13,1,3fffffff,0,0";;
GPRSpref) printf "\^SYSCFG=2,1,3fffffff,0,0";;
esac)'
-'OK-AT-OK' 'AT+CGDCONT=1,"IP",$(quote_word "$AccessPointName")'
+${AccessPointName:+'OK-AT-OK' 'AT+CGDCONT=1,"IP",$(quote_word "$AccessPointName")'}
'OK' 'ATDT${PhoneNumber:-*99#}'
TIMEOUT 30
CONNECT ''