Re: "> /dev/tty$i" commands in /etc/rc.sysinit?
From: Andrei Nestor (andrei.nestor_at_gmail.com)
Date: 11/30/04
- Previous message: Paul Howarth: "Re: yum problem"
- In reply to: Robert P. J. Day: ""> /dev/tty$i" commands in /etc/rc.sysinit?"
- Next in thread: Robert P. J. Day: "Re: "> /dev/tty$i" commands in /etc/rc.sysinit?"
- Reply: Robert P. J. Day: "Re: "> /dev/tty$i" commands in /etc/rc.sysinit?"
- Reply: John Summerfield: "Re: "> /dev/tty$i" commands in /etc/rc.sysinit?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Nov 2004 14:18:30 +0200 To: For users of Fedora Core releases <fedora-list@redhat.com>
On Tue, 30 Nov 2004 07:06:01 -0500 (EST), Robert P. J. Day
<rpjday@mindspring.com> wrote:
>
> just perusing the code from /etc/rc.sysinit, and i'm curious about
> the function of the lines:
>
> > /dev/tty$i
>
> 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
> > /dev/tty$((last+1))
> > /dev/tty$((last+2))
> fi
>
> 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?
>
> rday
>
> --
> fedora-list mailing list
> fedora-list@redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>
"> file" is equivalent to "cp /dev/null file", which means the
contents of the file is cleared
probably those lines are there to clear the ttys before spawning a
login prompt on them.
-- andrei P.S.: OS/400 Rulez. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
- Previous message: Paul Howarth: "Re: yum problem"
- In reply to: Robert P. J. Day: ""> /dev/tty$i" commands in /etc/rc.sysinit?"
- Next in thread: Robert P. J. Day: "Re: "> /dev/tty$i" commands in /etc/rc.sysinit?"
- Reply: Robert P. J. Day: "Re: "> /dev/tty$i" commands in /etc/rc.sysinit?"
- Reply: John Summerfield: "Re: "> /dev/tty$i" commands in /etc/rc.sysinit?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|