[1686] in linux-net channel archive
Re: PPP Problem...Please Help..
daemon@ATHENA.MIT.EDU (Lex Spoon)
Thu Jan 25 08:23:52 1996
To: linux-net@vger.rutgers.edu
Date: Wed, 24 Jan 1996 12:49:34 -0500 (EST)
From: "Lex Spoon" <lex@chaos.holmes.clemson.edu>
Reply-To: sspoon@clemson.edu
From: "Lex Spoon" <sspoon@clemson.edu>
Georg Wiegand wrote:
>
> >
> > Hello,
> >
> > I keep dropping my connection after about 20 seconds. I have read the HOWTO
> > and realize that this is probably a modem problem. I want to make sure there
> > is no way around it before I buy a new modem. I can connect to my ISP through
>
> (...)
>
> Maybe you should rewrite your script to let pppd manage connecting to
> the other side:
>
> ********* SCRIPT **********
> #!/bin/sh
>
> NAME=dcoutts
> KEY=5
> PASSWORD=<passwd>
> CUA=cua0
> NUMBER=*70,8293560
>
> export NAME KEY PASSWORD CUA NUMBER
>
> # I don't think this is necessary becouse pppd checks itself if the
> # port is locked
> if [ -f /var/spool/uucp/LCK..${CUA} ]
> then
> echo "Another process has locked your Modem"
> exit 1
> fi
>
> exec {path}/pppd /dev/${CUA} 115200 kdebug 4 lock crtscts defaultroute \
> noipdefault modem stty 19200 -tostop crtscts lock \
> connect '{path}/chat -v ABORT "NO CARRIER" ABORT BUSY "" ATZ OK ATDT${NUMBER} CONNECT "\d\d\r" TIMEOUT 5 "name>" ${NAME} "word>" ${PASSWORD} "keys:" ${KEY}'
> ********* SCRIPT END **********
>
> Alternate you could say: ... connect {path_to_connect_script}
>
> ========== connect_script ==========
> #!/bin/sh
> {path}/chat -v ABORT "NO CARRIER" \
> ABORT BUSY \
> "" ATZ OK \
> ATDT${NUMBER} CONNECT \
> "\d\d\r" \
> TIMEOUT 5 \
> "name>" ${NAME} \
> "word>" ${PASSWORD} \
> "keys:" ${KEY}
> ========== connect_script end ==========
This second method looks better -- using the first script, won't your
password show up in a ps listing?
Also, you might add "\q" after the password, if you are using -v;
otherwise your password will get syslog-ed!
-Lex