From aa7504e00fafee68324d48a2451a99cda2ba3615 Mon Sep 17 00:00:00 2001 From: smos Date: Sat, 2 Jun 2012 12:37:31 +0200 Subject: Fix the PinReady command not found error. Add a log command to show where you are dialing to. --- usr/local/sbin/mpd.script | 7 +++++-- 1 file 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 -- cgit v1.1