我的猫已经.安装好了,用minicom拨号没有问题,就是不能建立PPP连接,为什么.?--------------彩票
chat .-f. 脚本名 chat程序没有任何反映.
请看我的脚本有没有问题
ppp-off
#!/bin/sh
#####.############.#####################################################(广告)
#
# Determine .the. device to be terminated.服务器
#
if .[ "$1" = "" ]; then教育
.DEVICE=ppp0(广告)
else
. DEVICE=$1.
fi
###########################.###########.################################ 杀毒
#
# If the pp.p0 pid file is present then the program is running. Stop i.t. 美容
if [ -r /var/r.un/$DEVICE.pid ]; the.n[成人用品]
ki.ll -INT `cat /var/r.un/$DEVICE.pid`投资
#
# If the kill did not work then there is no p.rocess running fo.r this.
# pid. It may also .mean that the l.ock file will be left. You may wish电脑
# to del.ete the lock file at the same tim.e..
. . if [ ! "$?" = "0" ]; then外贸
rm -f. /var/run/$DEVICE.p.id.
. echo "ERROR: .Removed stale pid file"外贸
. exit 1.
fi
#
# Success.. Let pppd clea.n up its own junk.电影
echo "PP link to $DEVICE terminated."http://upload.bbs.csuboy.com/Mon_1004/126_7067_4f4b5a14d6d2379.gif[/img] 建材
exit 0
fi
#
# The ppp proc..ess is not running for ppp0教育
echo "ERROR: PPP link is not active. on $DEVI.CE".
exit 1
ppp-on
#!/bin/sh
#
# Script to initiate .a ppp connection. This is the first part of t.he学习
# pair of .scripts. This is not a secure p.air of scripts as the codes 婚庆
# are visible with the 'ps' command. .Howeve.r, it is simple.[成人用品]
#
#. These are the par.ameters. Change as needed. 女人
TELEPHONE=96163 # The t.elephone number for t.he connection.
ACCOUNT=96163 # The acc.ount name for logon (as in. 'Geo.rge Burns') 电子
PASSWOR.D=96163 . # The password for this account (and 'Gracie Allen.').
LOC.AL_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 desi.red. Normally 0.0.0.0域名
NETMASK=255.255.255..0 .# The proper netmask if needed域名
#
# Export them so that they will be avai.lable at 'ppp-on-di.aler' time.<性病>
expor.t TELEPHONE ACCOUNT PASSWORD. 汽车
#
# This is the. location of the scrip.t which dials the phone and logs.
# .in. Pleas.e use the absolute file name as the $PATH variable is not 汽车
# us.ed on the connect op.tion. (To do so on a 'root' account would be电脑
# .a security hole so don.'t ask.).
#
D.IALER_SCRI.PT=/etc/ppp/ppp-on-dialer 健康
#
# Initiate the connecti.on 女人
#
# I put most of the common options on this command.. Please, do.n't 健康
# forget the 'lock' option. or some programs such as mgetty will not.<性病>
# work. The asyncmap and escape will p.ermit the. PPP link to work with 电子
# a telnet or rlogin connecti.on. You ar.e welcome to make any changes.
# as desired. Don't use t.he 'defaultroute' option if you curre.ntly.
# have a d.efault route to an ethe.rnet gateway.虚拟主机
#
exec /usr/sbin/pppd debug lock modem. crtscts /dev/.modem 57600 \ 外汇
asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IPREMOTE_IP \http://upload.bbs.csuboy.com/Mon_1004/126_7067_00bc4ff17adaaa0.gif[/img] 建材
. noipdefault netmask $NETMASK defaultroute connect $DIA.LER_SCRIPT教育
ppp-on-dialer
#!/bin/sh
#
# This is part 2 of the p.pp-on script. It will perform the con.nection投资
# proto.col .for the desired connection..
#
exec chat -v . . \外贸
. TIMEOUT . 3 \ 女人
ABORT '\n.BUSY\r' . \虚拟主机
ABORT '\.nNO ANSWER\r' . \.
ABORT '\nRINGIN..G\r\n\r\nRINGING\r' \电影
. '' \rAT . \虚拟主机
.. 'OK-+++\c-OK' ATH0 \.
TIMEOUT . 30 . \( 游戏 )
OK . ATDT.$TELEPHONE \.
CONNECT '' . . \学习
. ogin:--ogin: $ACCOUNT . \--------------彩票
assword: . $PASSWORD. \ 外汇