From: Eric Andersen Date: Mon, 23 Apr 2001 15:14:11 +0000 (-0000) Subject: A patch from Marc Karasek and Kanoj (kernel serial.c maintainer) X-Git-Tag: 0_52~315 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d8862928c25be9b00f6755cf445773cd1e4cc22a;p=oweals%2Fbusybox.git 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 --- 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;