arbitrary programs in /etc/ttys [BETTER SOLUTION]

Geert Hendrickx geert.hendrickx at ua.ac.be
Sat Nov 6 17:25:26 PST 2004


On Mon, Oct 18, 2004 at 08:52:58PM +0200, Geert Hendrickx wrote:
> Hello, 
> 
> I'm trying to turn an old pc into a serial console.  I can perfectly get
> a login on the other end of the line with "cu -l cuaa0", but I would
> like to have this command started automatically at boot, so the users
> don't need to be educated about cu :-).  So I put the following in
> /etc/ttys: 
> 
> ttyv0	"/usr/bin/cu -l cuaa0"		vt100  on  secure
> 
> But this gives me the following error when restarting init: 
> 
> init: getty repeating too quickly on port /dev/ttyv0, sleeping 30 secs
> 
> Apparently cu can not be started directly from /etc/ttys, can it?  How
> else should I accomplish this?  
> 
> GH


I'm starting cu from /etc/rc.local now.  It does the job, and now users
can't even accidentally hit Ctrl-Alt-Fx and be stuck at another virtual
terminal.  

GH

-- 
:wq

http://www.openstandaarden.be/


More information about the freebsd-questions mailing list