summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-06-02 12:37:31 +0200
committersmos <seth.mos@dds.nl>2012-06-02 12:37:31 +0200
commitaa7504e00fafee68324d48a2451a99cda2ba3615 (patch)
tree48b76365fa9e21cb80b76339c7c8015b4b70645c /usr/local/sbin
parent5100c2de6e8aa7404169a213130ade8a1f6876ec (diff)
downloadpfsense-aa7504e00fafee68324d48a2451a99cda2ba3615.zip
pfsense-aa7504e00fafee68324d48a2451a99cda2ba3615.tar.gz
Fix the PinReady command not found error.
Add a log command to show where you are dialing to.
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