Wind pppd scripts

From Openmoko

Jump to: navigation, search

/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"
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
''         '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/ppp/chap-secrets

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