Subject: Re: run cu from /etc/ttys [BETTER SOLUTION]
To: None <netbsd-help@netbsd.org>
From: Geert Hendrickx <geert.hendrickx@ua.ac.be>
List: netbsd-help
Date: 11/07/2004 02:26:29
On Sat, Oct 30, 2004 at 01:56:50AM +0200, Geert Hendrickx wrote:
> Hello, 
> 
> I'm trying to turn an old unused pc into a serial terminal using NetBSD.
> I can perfectly logon to the terminal server at the other end of the
> line using "cu -l /dev/tty00" (in fact I'm typing this mail through the
> serial line), but now I want this machine to do nothing else, to just
> start cu on the console at boot (so the users won't notice the
> difference with the other dumb terminals).  
> 
> So I replaced a /usr/libexec/getty line in /etc/ttys with a /usr/bin/cu
> one and HUPed init, but then it gave some error about getty repeating
> too quickly, sleeping...  What should I do about this?  Isn't it
> possible to run arbitrary programs from /etc/ttys?  
> 
> 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/