Subject: Re: Modem problems
To: None <netbsd-help@NetBSD.ORG>
From: Mike Long <mike.long@analog.com>
List: netbsd-help
Date: 09/07/1995 15:18:19
>Date: Thu, 07 Sep 1995 09:30:49 +0100
>From: Chad Mynhier <mynhier@cs.utk.edu>

>- I tried the following:
>
>	stty -f /dev/tty02 clocal

This is your problem.  If /dev/tty02 is not held open by another
process, then it resets itself as soon as the stty process exits, so
the clocal flag is cleared as soon as you set it.  It's standard
behavior for device drivers to reset themselves when their close()
routine is called.

>	Does anyone have any suggestions?  Could it have 
>something to do with the /etc/ttys file?  Do I need to change 
>it to 'on', and if so, what do I specify instead of 'unknown'?
>I went searching through man files, spent a few minutes looking
>through /usr/share/misc/termcap, but I couldn't get enough out
>of it to know precisely what I needed to do.

The 'on'/'off' flag in /etc/ttys determines whether a getty process
should be started for that TTY.  You want it to be off, because you
want to use your modem to dial out.  The 'unknown' is the default
terminal type for dial-in ports, so it is irrelevant for dial-out
ports.  Add a 'local' flag to the end of the line for tty02 in
/etc/ttys.

See ttys(5) and ttyflags(8) for details.
-- 
Mike Long <mike.long@analog.com>           http://www.shore.net/~mikel
VLSI Design Engineer         finger mikel@shore.net for PGP public key
Analog Devices, CPD Division          CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA                assert(*this!=opinionof(Analog));