Re: New /dev/console and /dev/tty0
H. Peter Anvin (hpa@transmeta.com)
29 Apr 1997 16:35:54 GMT
Followup to: <Pine.LNX.3.96.970429170424.26667h-100000@mercator.cs.kuleuven.ac.be>
By author: Geert Uytterhoeven <Geert.Uytterhoeven@cs.kuleuven.ac.be>
In newsgroup: linux.dev.kernel
> >
> >The solution I made was that the kernel would set an environment variable
> >called CONSOLE to the (guessed, ofcourse) name of the console device.
> >Init looks at this environment variable to decide which console to
> >open for boot. The first script that is spawned by init can link the
> >real console device to /dev/console after remounting the root fs rw.
> >
> >This actually works very nice, better then I thought and looking back
> >Linus was right as usual :).
>
> Yep, $CONSOLE worked fine.
>
That being said, I think there is space for a /dev/console device
(making it a "magic" pty or whatever): linking /dev/console to a
device works great for only one output device, but with VT+serial
tty's, for example, this no longer does the trick.
-hpa
--
Always looking for a few good BOsFH. ** Linux - the OS of global cooperation
I am Bahá'í -- ask me about it or see http://www.bahai.org/