aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorerik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-02-21 19:25:12 +0000
committererik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-02-21 19:25:12 +0000
commit1d3c91f83f285db6df2ea157c654d0d7cf2ae61d (patch)
tree9315aca282f73ea18da3588a7328d4233a18e8c2 /init
parentab1d520cac2399b89f3b2c588253a33210a296eb (diff)
downloadbusybox-w32-1d3c91f83f285db6df2ea157c654d0d7cf2ae61d.tar.gz
busybox-w32-1d3c91f83f285db6df2ea157c654d0d7cf2ae61d.tar.bz2
busybox-w32-1d3c91f83f285db6df2ea157c654d0d7cf2ae61d.zip
Minor update for handling TERM with serial consoles.
-Erik git-svn-id: svn://busybox.net/trunk/busybox@376 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init')
-rw-r--r--init/init.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c
index a3e165ecc..4a19822ae 100644
--- a/init/init.c
+++ b/init/init.c
@@ -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 }