diff options
Diffstat (limited to 'src/lib/connections/mobile_ppp')
-rw-r--r-- | src/lib/connections/mobile_ppp | 3 |
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' |