A patch from Marc Karasek and Kanoj (kernel serial.c maintainer)
authorEric Andersen <andersen@codepoet.org>
Mon, 23 Apr 2001 15:14:11 +0000 (15:14 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 23 Apr 2001 15:14:11 +0000 (15:14 -0000)
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

init.c
init/init.c

diff --git a/init.c b/init.c
index 22bedd9babc375a363d926992002c17d4a0a9c34..d65220cdd97df72ba4c5649c853b7377a578f705 100644 (file)
--- 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;
index 22bedd9babc375a363d926992002c17d4a0a9c34..d65220cdd97df72ba4c5649c853b7377a578f705 100644 (file)
@@ -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;