64,637
社区成员
发帖
与我相关
我的任务
分享
pppd[14816]: pppd 2.4.1 started by root, uid 0
chat[14817]: timeout set to 3 seconds\
chat[14817]: abort on (\nBUSY\r)
chat[14817]: abort on (\nNO ANSWER\r)
chat[14817]: abort on (\nRINGING\r\n\r\nRINGING\r)
chat[14817]: send (rAT^M)c
chat[14817]: expect (OK)
chat[14817]: expect (OK)
chat[14817]: rAT^M^M
chat[14817]: OK
chat[14817]: -- got it
chat[14817]: send (ATH0^M)
chat[14817]: timeout set to 30 seconds
pppd[14816]: Serial connection established.
pppd[14816]: Using interface ppp0
pppd[14816]: Connect: ppp0 <--> /dev/ttyS0
pppd[14816]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
pppd[14816]: Serial line is looped back.
pppd[14816]: Connection terminated.
pppd[14816]: Exit.
ELEPHONE=*99***1# # The telephone number for the connection
ACCOUNT= # The account name for logon (as in 'George Burns')
PASSWORD= # The password for this account (and 'Gracie Allen')
LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.255.255.0 # The proper netmask if needed
export TELEPHONE ACCOUNT PASSWORD
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
exec /usr/sbin/pppd debug lock modem /dev/ttyS0 115200 \
asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT
exec chat -v \
TIMEOUT 3 \
ABORT '\nBUSY\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r' \
'' \rAT \
'OK-+++\c-OK' ATH0 \
TIMEOUT 30 \
OK ATDT$TELEPHONE \
CONNECT '' \
ogin:--ogin: $ACCOUNT \
assword: $PASSWORD