lkml.org 
[lkml]   [1998]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectFlexible Console open (really little patch)

Hi Linus, hi Kernel Gang,

I have a little patch here to make the opening of the initial console more
flexible: It tries first to open /etc/console and after that /dev/console.
The reason for this oerder is that one does not have controll of
/dev/console if useing Richards devfs driver. Since /etc/console does not
exist on most systems it will still open /dev/console on default. But if
you use the devfs filesystem as /dev/ and you haven't enabled the "mount
at boot time" option there will be no /dev/console and one can use
/etc/console instead. On the other hand if you are using the "mount at
boot time" option and you are not happy with the normal /dev/console you
can override it useing /etc/console.

The patch adds the CREDIT entry for my menuconfig/lxdialog hack (which
is part of the kernel since 2.1.110) too. Here is it:

--- linux/init/main.c Sun Aug 16 17:49:57 1998
+++ linux/init/main.c Sun Aug 16 18:50:34 1998
@@ -1291,7 +1291,8 @@

setup(1);

- if (open("/dev/console", O_RDWR, 0) < 0)
+ if (open("/etc/console", O_RDWR, 0) < 0 &&
+ open("/dev/console", O_RDWR, 0) < 0)
printk("Warning: unable to open an initial console.\n");

(void) dup(0);
--- linux/CREDITS Sun Aug 16 17:49:47 1998
+++ linux/CREDITS Sun Aug 16 18:54:16 1998
@@ -1954,6 +1954,15 @@
S: Wayville SA 5034
S: Australia

+N: Clifford Wolf
+E: god@clifford.at
+W: http://www.clifford.at/
+D: Menuconfig/lxdialog improvement
+D: Flexible console open
+S: Foehrengasse 16
+S: A-2333 Leopoldsdorf b. Wien
+S: Austria
+
N: Roger E. Wolff
E: R.E.Wolff@BitWizard.nl
D: Written kmalloc/kfree
-- -- -- -- -- -- -- -- -- -- -- -- --
Clifford Wolf
magnet - Internet at Work IRC: efnet / clifford
Director of System Development http://www.clifford.at/
e-mail: c.wolf@magnet.at email: god@clifford.at


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.117 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site