Subject: Re: mgetty problem
To: David Wetzel <dave@turbocat.de>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-help
Date: 08/28/2001 12:12:31
On Tue, 28 Aug 2001, David Wetzel wrote:

> if [ $RUNNING -eq 1 ]; then
>         #echo "all fine"
> else
>         #echo "no mgetty on tty02"
>         if [ -f /var/spool/lock/LCK..tty02 ]; then
>         #echo all fine someone uses the modem
>         OTHERPID=`cat /var/spool/lock/LCK..tty02`
>         OTHERRUNNING=`ps ax | grep $OTHERPID | grep -v grep |wc -l`

Sorry I missed the begginning of this thread, but you don't need to do
anything like that, as mgetty recognizes uucp style lockfiles.  (You
should have "lock" in pppd options, if you're sharing a line with a
running "pppd".) Just put "mgetty" in /etc/ttys. Example:

tty02   "/usr/pkg/sbin/mgetty -s 38400 -n 1"    unknown on


Frederick