Samuel Thibault, le Mon 30 Jan 2012 23:36:23 +0100, a écrit :
> - grep console=ttyS, ttys and tty0 in /proc/cmdline,
> - if one occurrence of ttyS or ttys is after tty0 (or if there is just
> ttyS or ttys but no tty0),

Oops, no, when the condition above is true, we are sure that the console
is on a serial line. The test below is only done in the other cases

>   - open /dev/console, and run TIOCGSERIAL on it
>     - if it fails, it's not serial; if it succeeds, it's serial, and the
>       keymap selection should not be asked.

notably when there is no VGA console driver anyway, and thus the kernel
defaults to serial.

Samuel



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to