Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 1996 08:37:31 -0500 (CDT)
From:      Joe Greco <jgreco@brasil.moneng.mei.com>
To:        jc@irbs.com (John Capo)
Cc:        ATuretta@stylo.it, freebsd-questions@FreeBSD.org, freebsd-isp@FreeBSD.org
Subject:   Re: How to add a delay before getty displays login prompt ?
Message-ID:  <199605101337.IAA02239@brasil.moneng.mei.com>
In-Reply-To: <199605100415.AAA19162@irbs.irbs.com> from "John Capo" at May 10, 96 00:15:32 am

index | next in thread | previous in thread | raw e-mail

> Angelo Turetta writes:
> > 
> [...]
> > I suspect that getty is displaying the prompt string a little too early for
> > the Sportster, and often the modem is still in the phase where any character
> > from the host aborts the connection.
> > Reading 'man gettytab' I've not found any parameter to instert a delay
> > between the DCD and the first write.
> > 
> 
> I haven't tried this but
> 
>     :im=\0:pf#5:
> 
> omits the initial banner and delays 5 seconds before issuing the
> login: prompt.
> 
> Or add sleep(5); above this piece of code in getty/main.c, around
> line 226.
> 
> 	if (IM && *IM)
> 		putf(IM);

I got a little exasperated at this; I did a much more general hack and put
in a "bx=" capability that kicks off an arbitrary binary after setting modes
but before printing the banner. (bx = banner executable).

I've used this with beta versions of Motorola ISDN firmware which exhibit a
similar (and reportedly intentional, for debugging purposes) behaviour.
Works like a charm.

... Joe

-------------------------------------------------------------------------------
Joe Greco - Systems Administrator			      jgreco@ns.sol.net
Solaria Public Access UNIX - Milwaukee, WI			   414/546-7968


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605101337.IAA02239>