[BusyBox] init.c
David Meggy
david at techsol.ca
Tue Apr 23 17:41:07 UTC 2002
The following code is from around line 387
<code snippet>
/* check for serial console and disable logging to tty5 &
running a
* shell to tty2-4 */
if (ioctl(0, TIOCGSERIAL, &sr) == 0) {
log = NULL;
secondConsole = NULL;
thirdConsole = NULL;
fourthConsole = NULL;
/* Force the TERM setting to vt102 for serial
console --
* iff TERM is set to linux (the default) */
if (strcmp( termType, "TERM=linux" ) == 0)
safe_strncpy(termType, "TERM=vt102",
sizeof(termType));
message(LOG | CONSOLE,
"serial console
detected. Disabling virtual terminals.\n");
</code snippet>
I was wondering why the other consoles are turned off if there is a serial
console.
Dave
More information about the busybox
mailing list