Wind pppd scripts

From Openmoko

Revision as of 18:14, 4 August 2008 by Niccolo (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

/etc/ppp/peers/wind

# Uncomment the following if you want some debug.
#debug
#logfile /var/volatile/log/pppd.log
lock
/dev/ttySAC0
115200
crtscts
connect "/usr/sbin/chat -v -S -s -f /etc/chatscripts/wind"
disconnect "/usr/sbin/chat -v -S -s -f /etc/chatscripts/disconnect"
hide-password
user "wind"
remotename "wind"
noauth
noipdefault
defaultroute
replacedefaultroute
usepeerdns
persist
lcp-echo-interval 30
lcp-echo-failure 5
maxfail 0
holdoff 30

/etc/chatscripts/wind

# Modem initialization.
TIMEOUT    15
''         '\K\K\K\d+++ATH'
OK-AT-OK   'ATZ'
OK-AT-OK   'ATE1'
#
# Set full functionality mode with
# automatic network operator selection.
OK-AT-OK   'AT+CFUN=1'
OK-AT-OK   'AT+COPS'
#
# Abort strings
ABORT      'BUSY'
ABORT      'NO CARRIER'
ABORT      'NO DIALTONE'
ABORT      'NO DIAL TONE'
ABORT      'NO ANSWER'
#
# Connect to the service provider.
TIMEOUT    60
OK-AT-OK   'AT+CGDCONT=1,"ip","internet.wind"'
OK-AT-OK   'ATD*99#'
CONNECT    '\d\c'

/etc/chatscripts/disconnect

# Abort strings
ABORT 'OK'
ABORT 'BUSY'
ABORT 'DELAYED'
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'VOICE'
ABORT 'ERROR'
ABORT 'RINGING'
#
# Set the modem in command mode.
TIMEOUT 12
''                   '\K\K\K\d+++ATH'
'NO CARRIER-AT-OK'   '\c'

/etc/ppp/chap-secrets

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

/etc/ppp/peers/wind

# Uncomment the following if you want some debug.
#debug
#logfile /var/volatile/log/pppd.log
lock
/dev/ttySAC0
115200
crtscts
connect "/usr/sbin/chat -v -S -s -f /etc/chatscripts/wind"
disconnect "/usr/sbin/chat -v -S -s -f /etc/chatscripts/disconnect"
hide-password
user "wind"
remotename "wind"
noauth
noipdefault
defaultroute
replacedefaultroute
usepeerdns
persist
lcp-echo-interval 30
lcp-echo-failure 5
maxfail 0
holdoff 30

/etc/chatscripts/wind

# Modem initialization.
TIMEOUT    15
''         '\K\K\K\d+++ATH'
OK-AT-OK   'ATZ'
OK-AT-OK   'ATE1'
#
# Set full functionality mode with
# automatic network operator selection.
OK-AT-OK   'AT+CFUN=1'
OK-AT-OK   'AT+COPS'
#
# Abort strings
ABORT      'BUSY'
ABORT      'NO CARRIER'
ABORT      'NO DIALTONE'
ABORT      'NO DIAL TONE'
ABORT      'NO ANSWER'
#
# Connect to the service provider.
TIMEOUT    60
OK-AT-OK   'AT+CGDCONT=1,"ip","internet.wind"'
OK-AT-OK   'ATD*99#'
CONNECT    '\d\c'

/etc/chatscripts/disconnect

# Abort strings
ABORT 'OK'
ABORT 'BUSY'
ABORT 'DELAYED'
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'VOICE'
ABORT 'ERROR'
ABORT 'RINGING'
#
# Set the modem in command mode.
TIMEOUT 12
''                   '\K\K\K\d+++ATH'
'NO CARRIER-AT-OK'   '\c'

/etc/ppp/chap-secrets

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