patch-util_grub_d_10_linux_in 984 B

1234567891011121314151617181920
  1. --- grub-1.98.orig/util/grub.d/10_linux.in 2010-03-06 21:51:37.000000000 +0100
  2. +++ grub-1.98/util/grub.d/10_linux.in 2010-06-26 21:18:10.803156350 +0200
  3. @@ -66,8 +66,8 @@ linux_entry ()
  4. # Use ELILO's generic "efifb" when it's known to be available.
  5. # FIXME: We need an interface to select vesafb in case efifb can't be used.
  6. if [ "x$GRUB_GFXPAYLOAD_LINUX" = x ]; then
  7. - if grep -qx "CONFIG_FB_EFI=y" /boot/config-${version} 2> /dev/null \
  8. - && grep -qx "CONFIG_VT_HW_CONSOLE_BINDING=y" /boot/config-${version} 2> /dev/null; then
  9. + if grep -q "CONFIG_FB_EFI=y" /boot/config-${version} 2> /dev/null \
  10. + && grep -q "CONFIG_VT_HW_CONSOLE_BINDING=y" /boot/config-${version} 2> /dev/null; then
  11. cat << EOF
  12. set gfxpayload=keep
  13. EOF
  14. @@ -135,5 +135,5 @@ while [ "x$list" != "x" ] ; do
  15. "single ${GRUB_CMDLINE_LINUX}"
  16. fi
  17. - list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
  18. + list=`echo $list | tr ' ' '\n' | grep -v $linux | tr '\n' ' '`
  19. done