Subject: Re: pppd won't work from init?
To: Jukka Marin <jmarin@pyy.jmp.fi>
From: Frederick Bruckman <fb@enteract.com>
List: port-i386
Date: 10/16/1998 11:42:03
On Fri, 16 Oct 1998, Jukka Marin wrote:

> It works and does not detach from the shell.  This is what I have in
> /etc/ttys:
> 
> tty00   "/usr/sbin/pppd tty00 38400"    unknown on
> 
> If I say
> 
> /usr/sbin/pppd tty00 38400
> 
> in shell, everything works,  I have /etc/ppp/options, /etc/ppp/options.tty00
> and the chat and connect scripts present.

It may be that chat doesn't like the condition that the line is in
when it gets it from init, vs. being invoked from the command line.
Perhaps you need something like "rtscts" or "local" on the ttys line.

What's the chat script for, anyway? Are you actually using /etc/ttys
to dail out?

If you really need to do something to a modem, that may not always
work, the "pppd chat" option doesn't really need to invoke "chat."
Just for grins, you might try a construction like this: 

	pppd chat "/usr/sbin/chat -vf chatfile ; true" nodetach etc...

which may not actually work, but it would at least stop the "getty
repeating too quickly" thing. Then you could examine the state of the
port with "stty -af /dev/tty00", to see what {init,chat} is doing
wrong. Good luck.