Jarek <(E-Mail Removed)> wrote:
> I've very trange problem with pppd. I've configuration for some
> provider, which works fine if started from command line:
> pppd call gprs
> syslog:
....
[good connection]
> but if I put same command to the script:
> #!/bin/sh
> exec pppd call gprs
> sleep 20
> ifconfig ppp0 | grep UP > /dev/null
> if [ "$?" = "0" ]
> then
> logger "Connected."
> fi
> it failes to connect showing in the log:
> ================================================== ==================
> pppd[16399]: rcvd [PAP AuthAck id=0x1 ""]
> pppd[16399]: PAP authentication succeeded
> pppd[16399]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
> pppd[16399]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr
> 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
> pppd[16399]: rcvd [LCP ProtRej id=0x6 80 fd 01 01 00 0c 1a 04 78 00 18
> 04 78 00]
> pppd[16399]: Protocol-Reject for 'Compression Control Protocol' (0x80fd)
> received
> pppd[16399]: Hangup (SIGHUP)
> ^^^^^^^^^^^^^^^^^
> pppd[16399]: sent [LCP TermReq id=0x3 "User request"]
> pppd[16399]: sent [LCP TermReq id=0x4 "User request"]
> ================================================== ==================
> Where is the problem ???
It seems the cell phone hung up on the chat serial connection.
That is likely caused by the exec in your script, although not
because the lines following "exec pppd call gprs" are ignored.
I'm not sure why exec causes the hangup, but will speculate that it
could be something subtle in the gprs script. It might help if you
would post that script, xxx'ing out anything you consider sensitive.
(As an aside, if you want to eliminate some unnecessary negotiations
and messages then add the pppd options noccp, novj, and noipdefault.)
--
Clifford Kite Email: "echo
xvgr_yvahk-(E-Mail Removed)|rot13"