serial console and log-in
Denis Vlasenko
vda.linux at googlemail.com
Sat Feb 17 16:00:10 UTC 2007
On Friday 16 February 2007 23:45, Natanael Copa wrote:
> Hi,
>
> >From the serial console kernel documentation:
>
> If no console device is specified, the first device found capable of
> acting as a system console will be used. At this time, the system
> first looks for a VGA card and then for a serial port. So if you don't
> have a VGA card in your system the first serial port will automatically
> become the console.
>
> 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
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.
--
vda
More information about the busybox
mailing list