[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101118131420.GA23872@boole.suse.de>
Date: Thu, 18 Nov 2010 14:14:20 +0100
From: "Dr. Werner Fink" <werner@...e.de>
To: Alan Cox <alan@...rguk.ukuu.org.uk>
Cc: Greg KH <greg@...ah.com>,
Lennart Poettering <mzxreary@...inter.de>,
Kay Sievers <kay.sievers@...y.org>, Valdis.Kletnieks@...edu,
linux-kernel <linux-kernel@...r.kernel.org>,
Randy Dunlap <rdunlap@...otime.net>,
Jiri Slaby <jslaby@...e.cz>
Subject: Re: tty: add 'active' sysfs attribute to tty0 and console device
On Thu, Nov 18, 2010 at 12:58:22PM +0000, Alan Cox wrote:
> > Example: running a boot script on /dev/console and after fsck
> > sulogin has to called to be able to asked the system admin.
> > Now the question is which console device the system admin is
> > waiting in front of (before /dev/ttyS0 or /dev/tty3270 or whatever).
>
> Ok that is a rather nebulous concept for embedded. The answer probably
> being that the true console device has no input facility.
>
> > I'm aware of. For using tty devices of the system console it requires
> > to have e.g. with my patch:
> >
> > bash> cat /proc/tty/consoles
> > tty0 -WU (ECp) 4:7
> >
> > the `W' flag for write and the major:minor pair, beside this the `U'
> > flag indicates the tty can do an unblank operation, the `-' shows that
> > there is no read operation (never seen such a console tty). On an other
>
> Try the lp printer console if you want a test case
>
> > to detect the primary console device here.
>
> Why not just open /dev/console ?
How can I detect the major and minor of the primary console device
of /dev/console without controlling tty? Even if my old blogd
and the bootlogd(8) of SysInitV using TIOCCONS are outdated by SystemD
the question before doing the TIOCCONS is which is the primary console
device to e.g. create the device node in initrd or for bootlogd(8)
to write a copy of the console messages back to the original
primary console (and the other console devices).
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists