Yoigo pppd scripts

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(New page: These scripts work with Yoigo (Spain) using FDOM and the this script http://freeyourphone.de/portal_v1/viewtopic.php?f=21&t=295. === /etc/ppp/peers/gprs === <pre> connect /etc/ppp/gpr...)
 
(-cat)
 
(2 intermediate revisions by 2 users not shown)
Line 29: Line 29:
 
#!/bin/sh
 
#!/bin/sh
 
exec chat -v\
 
exec chat -v\
        ABORT BUSY\
+
ABORT BUSY\
        ABORT DELAYED\
+
ABORT DELAYED\
        ABORT "NO ANSWER"\
+
ABORT "NO ANSWER"\
        ABORT "NO DIALTONE"\
+
ABORT "NO DIALTONE"\
        ABORT VOICE\
+
ABORT VOICE\
        ABORT ERROR\
+
ABORT ERROR\
        ABORT RINGING\
+
ABORT RINGING\
        TIMEOUT 20\
+
TIMEOUT 20\
        "" +++\
+
"" +++\
        OK ATZ\
+
OK ATZ\
        OK ATE1\
+
OK ATE1\
        OK AT+CFUN=1\
+
OK AT+CFUN=1\
        OK AT+COPS\
+
OK AT+COPS\
        OK AT+CGDCONT=1,\"IP\",\"internet\"\
+
OK AT+CGDCONT=1,\"IP\",\"internet\"\
        OK ATD*99#\
+
OK ATD*99#\
        CONNECT /n/d
+
CONNECT /n/d
 
</pre>
 
</pre>
 
----
 
----
Line 52: Line 52:
 
#!/bin/sh -e
 
#!/bin/sh -e
 
/usr/sbin/chat -v\
 
/usr/sbin/chat -v\
        ABORT OK\
+
ABORT OK\
        ABORT BUSY\
+
ABORT BUSY\
        ABORT DELAYED\
+
ABORT DELAYED\
        ABORT "NO ANSWER"\
+
ABORT "NO ANSWER"\
        ABORT "NO CARRIER"\
+
ABORT "NO CARRIER"\
        ABORT "NO DIALTONE"\
+
ABORT "NO DIALTONE"\
        ABORT VOICE\
+
ABORT VOICE\
        ABORT ERROR\
+
ABORT ERROR\
        ABORT RINGING\
+
ABORT RINGING\
        TIMEOUT 12\
+
TIMEOUT 12\
        "" \\k\\k\\k\\d+++ATH\
+
"" \\k\\k\\k\\d+++ATH\
        "NO CARRIER-AT-OK" ""
+
"NO CARRIER-AT-OK" ""
 
</pre>
 
</pre>
 
----
 
----

Latest revision as of 09:58, 19 July 2009

These scripts work with Yoigo (Spain) using FDOM and the this script http://freeyourphone.de/portal_v1/viewtopic.php?f=21&t=295.

Contents

[edit] /etc/ppp/peers/gprs

connect /etc/ppp/gprs-connect-chat
disconnect /etc/ppp/gprs-disconnect-chat
crtscts
lock
#hide-password
defaultroute
usepeerdns
ipcp-accept-local
noauth
noipdefault
novj
novjccomp
replacedefaultroute
lcp-echo-interval 3
lcp-echo-failure 12
#user ""
mtu 472
persist
holdoff 15

[edit] /etc/ppp/gprs-connect-chat

#!/bin/sh
exec chat -v\
ABORT BUSY\
ABORT DELAYED\
ABORT "NO ANSWER"\
ABORT "NO DIALTONE"\
ABORT VOICE\
ABORT ERROR\
ABORT RINGING\
TIMEOUT 20\
"" +++\
OK ATZ\
OK ATE1\
OK AT+CFUN=1\
OK AT+COPS\
OK AT+CGDCONT=1,\"IP\",\"internet\"\
OK ATD*99#\
CONNECT /n/d

[edit] /etc/ppp/gprs-disconnect-chat

#!/bin/sh -e
/usr/sbin/chat -v\
ABORT OK\
ABORT BUSY\
ABORT DELAYED\
ABORT "NO ANSWER"\
ABORT "NO CARRIER"\
ABORT "NO DIALTONE"\
ABORT VOICE\
ABORT ERROR\
ABORT RINGING\
TIMEOUT 12\
"" \\k\\k\\k\\d+++ATH\
"NO CARRIER-AT-OK" ""

[edit] /etc/ppp/pap-secrets

# Secrets for authentication using PAP
# client        server  secret                  IP addresses
*               *       ""                      *

[edit] /etc/ppp/chap-secrets

# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
*               *       ""                      *

Personal tools

These scripts work with Yoigo (Spain) using FDOM and the this script http://freeyourphone.de/portal_v1/viewtopic.php?f=21&t=295.

/etc/ppp/peers/gprs

connect /etc/ppp/gprs-connect-chat
disconnect /etc/ppp/gprs-disconnect-chat
crtscts
lock
#hide-password
defaultroute
usepeerdns
ipcp-accept-local
noauth
noipdefault
novj
novjccomp
replacedefaultroute
lcp-echo-interval 3
lcp-echo-failure 12
#user ""
mtu 472
persist
holdoff 15

/etc/ppp/gprs-connect-chat

#!/bin/sh
exec chat -v\
        ABORT BUSY\
        ABORT DELAYED\
        ABORT "NO ANSWER"\
        ABORT "NO DIALTONE"\
        ABORT VOICE\
        ABORT ERROR\
        ABORT RINGING\
        TIMEOUT 20\
        "" +++\
        OK ATZ\
        OK ATE1\
        OK AT+CFUN=1\
        OK AT+COPS\
        OK AT+CGDCONT=1,\"IP\",\"internet\"\
        OK ATD*99#\
        CONNECT /n/d

/etc/ppp/gprs-disconnect-chat

#!/bin/sh -e
/usr/sbin/chat -v\
        ABORT OK\
        ABORT BUSY\
        ABORT DELAYED\
        ABORT "NO ANSWER"\
        ABORT "NO CARRIER"\
        ABORT "NO DIALTONE"\
        ABORT VOICE\
        ABORT ERROR\
        ABORT RINGING\
        TIMEOUT 12\
        "" \\k\\k\\k\\d+++ATH\
        "NO CARRIER-AT-OK" ""

/etc/ppp/pap-secrets

# Secrets for authentication using PAP
# client        server  secret                  IP addresses
*               *       ""                      *

/etc/ppp/chap-secrets

# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
*               *       ""                      *