summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorEric Andersen2001-04-23 15:14:11 +0000
committerEric Andersen2001-04-23 15:14:11 +0000
commitd8862928c25be9b00f6755cf445773cd1e4cc22a (patch)
treeb5218aaa9bc0c4bd755685fe4bb9292b6da017fc /init
parentf5c358bc9832733fcba16ec24b38c67c7b62ab85 (diff)
downloadbusybox-d8862928c25be9b00f6755cf445773cd1e4cc22a.zip
busybox-d8862928c25be9b00f6755cf445773cd1e4cc22a.tar.gz
A patch from Marc Karasek and Kanoj (kernel serial.c maintainer)
so init will work on serial consoles with 2.4.3+ kernels, thanks to Fabrice Gautier <gautier@email.enst.fr> for finding this one. -Erik
Diffstat (limited to 'init')
-rw-r--r--init/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/init/init.c b/init/init.c
index 22bedd9..d65220c 100644
--- a/init/init.c
+++ b/init/init.c
@@ -278,7 +278,8 @@ static void set_term(int fd)
/* Make it be sane */
tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD;
- tty.c_cflag |= HUPCL|CLOCAL;
+ tty.c_cflag |= CREAD|HUPCL|CLOCAL;
+
/* input modes */
tty.c_iflag = ICRNL | IXON | IXOFF;