serial console and log-in

Natanael Copa natanael.copa at gmail.com
Mon Feb 19 10:32:55 UTC 2007


On Sat, 2007-02-17 at 17:00 +0100, Denis Vlasenko wrote:
> On Friday 16 February 2007 23:45, Natanael Copa wrote:
> > Hi,
> > 
> > Is there some way to autodetect if the console is a serial console, and
> > if it is, activate a line like this in inittab:
> > 
> > ttyS0 ::respawn:/sbin/getty -L ttyS0 115200 vt100 
> > 
> > And if /dev/console is not a serial console, it will not activate any
> > getty on the serial console.
> 
> I propose making it possible to start getty (or whatever)
> on any device which happens to be init's fd#0 (which is passed to it
> by kernel). This way you will automatically get your getty whereever
> kernel's console happened to be this time.
> 
> Proposed syntax:
> 
> ::respawn:/sbin/getty - 115200 vt100 
> 
> or
> 
> 0::respawn:/sbin/getty - 115200 vt100 
> 
> or 
> 
> stdin::respawn:/sbin/getty - 115200 vt100 

Yes. something like that was exactly what I was hoping for.

> We should fix init's crazy handling of console and stdio fd's first
> (see my earlier mail today). Not too hard, I just need people who
> are willing to test changes.

I'm willing to test. I think I will be able to allocate some time during
the week. Unfortunally, the serial-only box hasn't arrived yet and you
can't remove the vga card in qemu afaik.

Thanks!
> --
> vda




More information about the busybox mailing list