"> /dev/tty$i" commands in /etc/rc.sysinit?
Robert P. J. Day
rpjday at mindspring.com
Tue Nov 30 12:06:01 UTC 2004
just perusing the code from /etc/rc.sysinit, and i'm curious about
the function of the lines:
for values of "i" gleaned from the mingetty lines from /etc/inittab (1
thru 6 by default). what does that redirection accomplish? i vaguely
recall it initializes the initial virtual consoles but i don't
remember in what way.
also, just after that, there's the code:
if [ $last -gt 0 ]; then
and this does *what* for the next couple virtual consoles? and why
only two of them? i'm guessing it has something to do with
initializing the next two VCs to handle an X session, but does that
mean you can't have more than two X sessions unless you change this?
More information about the users