diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-14 08:21:02 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-14 08:21:02 +0000 |
commit | 8c317f089a8f27f25a57932a4cbf3f0eebfa2b4b (patch) | |
tree | 2b7e3a06916097dbdc1c3894f1a8eb4d9919d717 | |
parent | 077b80d39d587b7d1ed46dd2d2f4615e2cc7aa3a (diff) | |
download | upstream-8c317f089a8f27f25a57932a4cbf3f0eebfa2b4b.tar.gz upstream-8c317f089a8f27f25a57932a4cbf3f0eebfa2b4b.tar.bz2 upstream-8c317f089a8f27f25a57932a4cbf3f0eebfa2b4b.zip |
grub2: fix processing the serial rts/cts option
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44752 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/boot/grub2/patches/210-fix_serial_rtscts.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/boot/grub2/patches/210-fix_serial_rtscts.patch b/package/boot/grub2/patches/210-fix_serial_rtscts.patch new file mode 100644 index 0000000000..d60471c1d1 --- /dev/null +++ b/package/boot/grub2/patches/210-fix_serial_rtscts.patch @@ -0,0 +1,14 @@ +--- a/grub-core/term/serial.c ++++ b/grub-core/term/serial.c +@@ -241,9 +241,9 @@ grub_cmd_serial (grub_extcmd_context_t c + + if (state[OPTION_RTSCTS].set) + { +- if (grub_strcmp (state[OPTION_PARITY].arg, "on") == 0) ++ if (grub_strcmp (state[OPTION_RTSCTS].arg, "on") == 0) + config.rtscts = 1; +- if (grub_strcmp (state[OPTION_PARITY].arg, "off") == 0) ++ else if (grub_strcmp (state[OPTION_RTSCTS].arg, "off") == 0) + config.rtscts = 0; + else + return grub_error (GRUB_ERR_BAD_ARGUMENT, |