]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: add baud rates available from glibc that are not already supported
authorJames Buren <ryuo@frugalware.org>
Tue, 3 Sep 2013 08:01:42 +0000 (03:01 -0500)
committerKarel Zak <kzak@redhat.com>
Thu, 12 Sep 2013 09:03:59 +0000 (11:03 +0200)
This adds userspace support for baud rates reater than 230400, provided the tty
also supports it.

term-utils/agetty.c

index 04b7ee465182c49098e354a47690fdb28369ad1e..29301a61c85d5f8ad4c10c7eefd46160d1ff39c3 100644 (file)
@@ -205,6 +205,42 @@ static const struct Speedtab speedtab[] = {
 #endif
 #ifdef B230400
        {230400, B230400},
+#endif
+#ifdef B460800
+       {460800, B460800},
+#endif
+#ifdef B500000
+       {500000, B500000},
+#endif
+#ifdef B576000
+       {576000, B576000},
+#endif
+#ifdef B921600
+       {921600, B921600},
+#endif
+#ifdef B1000000
+       {1000000, B1000000},
+#endif
+#ifdef B1152000
+       {1152000, B1152000},
+#endif
+#ifdef B1500000
+       {1500000, B1500000},
+#endif
+#ifdef B2000000
+       {2000000, B2000000},
+#endif
+#ifdef B2500000
+       {2500000, B2500000},
+#endif
+#ifdef B3000000
+       {3000000, B3000000},
+#endif
+#ifdef B3500000
+       {3500000, B3500000},
+#endif
+#ifdef B4000000
+       {4000000, B4000000},
 #endif
        {0, 0},
 };