diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-04-23 15:14:11 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-04-23 15:14:11 +0000 |
commit | d8862928c25be9b00f6755cf445773cd1e4cc22a (patch) | |
tree | b5218aaa9bc0c4bd755685fe4bb9292b6da017fc /init/init.c | |
parent | f5c358bc9832733fcba16ec24b38c67c7b62ab85 (diff) | |
download | busybox-w32-d8862928c25be9b00f6755cf445773cd1e4cc22a.tar.gz busybox-w32-d8862928c25be9b00f6755cf445773cd1e4cc22a.tar.bz2 busybox-w32-d8862928c25be9b00f6755cf445773cd1e4cc22a.zip |
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/init.c')
-rw-r--r-- | init/init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/init/init.c b/init/init.c index 22bedd9ba..d65220cdd 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -278,7 +278,8 @@ static void set_term(int fd) | |||
278 | 278 | ||
279 | /* Make it be sane */ | 279 | /* Make it be sane */ |
280 | tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD; | 280 | tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD; |
281 | tty.c_cflag |= HUPCL|CLOCAL; | 281 | tty.c_cflag |= CREAD|HUPCL|CLOCAL; |
282 | |||
282 | 283 | ||
283 | /* input modes */ | 284 | /* input modes */ |
284 | tty.c_iflag = ICRNL | IXON | IXOFF; | 285 | tty.c_iflag = ICRNL | IXON | IXOFF; |