Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Nov 2004 02:25:11 +0100
From:      "Geert Hendrickx" <geert.hendrickx@ua.ac.be>
To:        freebsd-questions@freebsd.org
Subject:   Re: arbitrary programs in /etc/ttys [BETTER SOLUTION]
Message-ID:  <20041107012511.GA16346@gemini.lori.mine.nu>
In-Reply-To: <20041018185258.GA71347@lori.mine.nu>
References:  <20041018185258.GA71347@lori.mine.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



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