diff options
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -314,8 +314,10 @@ static void console_init() | |||
314 | if (ioctl(0, TIOCGSERIAL, &sr) == 0) { | 314 | if (ioctl(0, TIOCGSERIAL, &sr) == 0) { |
315 | log = NULL; | 315 | log = NULL; |
316 | secondConsole = NULL; | 316 | secondConsole = NULL; |
317 | /* Force the TERM setting to vt102 for serial console */ | 317 | /* Force the TERM setting to vt102 for serial console -- |
318 | snprintf(termType, sizeof(termType) - 1, "TERM=vt102"); | 318 | * iff TERM is set to linux (the default) */ |
319 | if (strcmp( termType, "TERM=linux" ) == 0) | ||
320 | snprintf(termType, sizeof(termType) - 1, "TERM=vt102"); | ||
319 | message(LOG | CONSOLE, | 321 | message(LOG | CONSOLE, |
320 | "serial console detected. Disabling virtual terminals.\r\n"); | 322 | "serial console detected. Disabling virtual terminals.\r\n"); |
321 | } | 323 | } |