summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/sbin')
-rw-r--r--usr/local/sbin/mpd.script7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/sbin/mpd.script b/usr/local/sbin/mpd.script
index a7e62dc..3039db5 100644
--- a/usr/local/sbin/mpd.script
+++ b/usr/local/sbin/mpd.script
@@ -105,15 +105,17 @@ DialPeerSetPin:
log $modemCmd
call ModemQuery
log $modemQuery
- if $modemQuery match ".*READY.*" return
+ if $modemQuery match ".*READY.*" goto DialPinReady
set $modemCmd "+CPIN=\"$SimPin\""
call ModemCmd2
wait $PinWait
-PinReady:
+
+DialPinReady:
return
DialPeerSetAPN:
set $modemCmd "+CGDCONT=$APNum,\"IP\",\"$APN\""
+ log $modemCmd
call ModemCmd2
return
@@ -144,6 +146,7 @@ ModemDial:
set $ConnectionSpeed ""
if $ConnectTimeout == "" set $ConnectTimeout 45
print "AT${DialPrefix}${ModTelephone}\r\n"
+ log "AT${DialPrefix}${ModTelephone}"
match "NO CARRIER" DialAbortNoCar
match "NO DIAL" DialAbortNoDial
match "BUSY" DialAbortBusy
OpenPOWER on IntegriCloud