On Wed, Feb 23, 2005 at 12:42:17PM -0500, Jim Bauer wrote: > I am trying to setup a system that can use either the regular > keyboard/monitor for console or the serial port. The system needs to > boot unattended and it needs to make the right choice as to serial or > normal console. > > I can get the console to be one of the other with various > console=xxxx lines. However there doesn't seem to be anything like > autodetection. i.e. if the keyboard is plugged in use that, else use > the serial port. > > Also is it possible for /dev/console (not just kernel messages) to go to > both at once? That includes input as well. The console is where the kernel output goes. The input it accepts is sysrq. You can have console on multiple devices by using more than one console=xxx option. See documentation/serial-console.txt The console has nothing to do with login prompts. You can put gettys on the regular keyboard/monitor and on a serial line at the same time. Regular /etc/inittab has the following line to enable a getty on tty1 in all run levels: 1:2345:respawn:/sbin/getty 38400 tty1 You can easily add one for a serial line: S0:2345:respawn:/sbin/getty -L ttyS0 9600 vt100 Erik -- Erik Mouw J.A.K.Mouw@xxxxxxxxxxxxxx mouw@xxxxxxxxxxxx
Attachment:
signature.asc
Description: Digital signature