From d8862928c25be9b00f6755cf445773cd1e4cc22a Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 23 Apr 2001 15:14:11 +0000 Subject: [PATCH] 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 for finding this one. -Erik --- init.c | 3 ++- init/init.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/init.c b/init.c index 22bedd9ba..d65220cdd 100644 --- a/init.c +++ b/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; 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) /* 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; -- 2.25.1