Revision 75e89498
Added by Seth Mos about 13 years ago
usr/local/sbin/mpd.script | ||
---|---|---|
83 | 83 |
DialPeer2: |
84 | 84 |
log "Detected $ModemDescription." |
85 | 85 |
call $ModemSetupFunc |
86 |
if $SimPin != "" call DialPeerSetPin |
|
87 |
if $APN != "" call DialPeerSetAPN |
|
88 | 86 |
log "Dialing server at $Telephone..." |
89 | 87 |
call ModemDial |
90 | 88 |
if $dialResult == "OK" goto DialPeerOK |
... | ... | |
398 | 396 |
|
399 | 397 |
ModemIdentGeneric: |
400 | 398 |
set $ModemDescription "Hayes compatible modem" |
399 |
if $SimPin != "" call DialPeerSetPin |
|
400 |
if $APN != "" call DialPeerSetAPN |
|
401 | 401 |
set $ModemSetupFunc GenericSetup |
402 | 402 |
return |
403 | 403 |
|
Also available in: Unified diff
Move the SIM Pin and APN settings to the modem setup since we need these only once.