summaryrefslogtreecommitdiffstats
path: root/term-utils/agetty.c
diff options
context:
space:
mode:
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r--term-utils/agetty.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c
index 5181de150..34ad7f230 100644
--- a/term-utils/agetty.c
+++ b/term-utils/agetty.c
@@ -387,9 +387,11 @@ int main(int argc, char **argv)
tcsetpgrp(STDIN_FILENO, getpid());
- /* Default serial line speed (may be ignored on --{extract,keep}-baud) */
- if ((options.flags & F_VCONSOLE) == 0 && options.numspeed == 0)
+ /* Default is to follow the current line speend and then default to 9600 */
+ if ((options.flags & F_VCONSOLE) == 0 && options.numspeed == 0) {
options.speeds[options.numspeed++] = bcode("9600");
+ options.flags |= F_KEEPSPEED
+ }
/* Initialize the termios settings (raw mode, eight-bit, blocking i/o). */
debug("calling termio_init\n");