From 75e89498529eca6f306cf7022cc7cc3ab979f25c Mon Sep 17 00:00:00 2001 From: smos Date: Sat, 2 Jun 2012 12:59:09 +0200 Subject: Move the SIM Pin and APN settings to the modem setup since we need these only once. --- usr/local/sbin/mpd.script | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local/sbin') diff --git a/usr/local/sbin/mpd.script b/usr/local/sbin/mpd.script index 3039db5..4525b01 100644 --- a/usr/local/sbin/mpd.script +++ b/usr/local/sbin/mpd.script @@ -83,8 +83,6 @@ DialPeer1: DialPeer2: log "Detected $ModemDescription." call $ModemSetupFunc - if $SimPin != "" call DialPeerSetPin - if $APN != "" call DialPeerSetAPN log "Dialing server at $Telephone..." call ModemDial if $dialResult == "OK" goto DialPeerOK @@ -398,6 +396,8 @@ ModemIdent: ModemIdentGeneric: set $ModemDescription "Hayes compatible modem" + if $SimPin != "" call DialPeerSetPin + if $APN != "" call DialPeerSetAPN set $ModemSetupFunc GenericSetup return -- cgit v1.1