summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo von Klenze <devel@leo.von-klenze.de>2013-04-14 15:31:25 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2013-04-18 09:12:46 +0200
commite1ae4c56483ee2664a5448a305019b43f1b10ad9 (patch)
tree17953c8ac40c46d921cead8cdf1058d8891061c6
parente3cc2987544e3f75a793eb3d5cc95d2c40309bda (diff)
downloadnetctl-e1ae4c56483ee2664a5448a305019b43f1b10ad9.tar.gz
netctl-e1ae4c56483ee2664a5448a305019b43f1b10ad9.tar.xz
add command to turn modem on, fix pin command
-rw-r--r--src/lib/connections/mobile_ppp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/connections/mobile_ppp b/src/lib/connections/mobile_ppp
index fe01fe0..19d63f9 100644
--- a/src/lib/connections/mobile_ppp
+++ b/src/lib/connections/mobile_ppp
@@ -58,7 +58,7 @@ EOF
#echo "'OK' @/etc/ppp/chatscripts/pin" >> "${chat}"
if [ -n "${Pin}" ]; then
- PinStr="'OK' 'AT+CPIN=${Pin}'"
+ PinStr="'OK' 'AT+CPIN=\"${Pin}\"'"
else
PinStr="'OK' 'AT'"
fi
@@ -101,6 +101,7 @@ TIMEOUT 6
'' 'ATQ0'
'OK-AT-OK' 'ATZ'
TIMEOUT 3
+'OK' 'AT+CFUN=1'
${PinStr}
'OK\d-AT-OK' 'ATI'
'OK' 'ATZ'