From: Felix Fietkau Date: Sat, 14 Mar 2015 08:21:02 +0000 (+0000) Subject: grub2: fix processing the serial rts/cts option X-Git-Tag: reboot~3983 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5011d85ee8ab6ce775bc4681766dc204198b73a5;p=openwrt%2Fstaging%2Fblogic.git grub2: fix processing the serial rts/cts option Signed-off-by: Felix Fietkau SVN-Revision: 44752 --- 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 000000000000..d60471c1d181 --- /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,