mgetty on FreeBSD

Gert Doering (gert@greenie.muc.de)
Fri, 27 Feb 1998 16:20:01 +0100


Hi,

Willem van den Bosch wrote:
> I am hoping someone can help me sort out my mgetty on FreeBSD problems.
> Having installed "mgetty: experimental test release 1.1.12-Jan27" I am having
> problems connecting to my ISP. Logging into my machine seems to work OK.
> Allthough I have tried the various CFLAGS options none alter the end result
> (see diffs at the end.) when dialing my ISP.

Make sure that you get the locking right - pppd must create a
'/var/spool/lock/LCK..cuaa1' file, otherwise mgetty won't release the
tty.

> 02/27 22:53:23 aa1  waiting... 
> 02/27 23:43:44 aa1    select returned 1 
> 02/27 23:43:44 aa1   checking lockfiles, locking the line 
> 02/27 23:43:44 aa1   makelock(cuaa1) called 
> 02/27 23:43:44 aa1   do_makelock: lock='/var/spool/lock/LCK..cuaa1' 
> 02/27 23:43:44 aa1   lock made 
> 02/27 23:43:44 aa1  waiting for ``RING'' 
> 02/27 23:43:44 aa1   got: [0d] 
> 02/27 23:43:44 aa1    CND: OK[0a]ATDT55555555[0d] 
> 02/27 23:43:45 aa1    CND: ATDT55555555 

This can be seen very clearly: there is no pppd lock file, thus mgetty
tramples on the connection, assuming it's an incoming RING.

gert

-- 
USENET is *not* the non-clickable part of WWW!
           //www.muc.de/~gert/
Gert Doering - Munich, Germany      gert@greenie.muc.de
fax: +49-89-35655025    gert.doering@physik.tu-muenchen.de
.