2008-11-10 Robert Millan <rmh@aybabtu.com>

* util/grub.d/00_header.in: Add backward compatibility check for
        versions of terminal.mod that don't understand `terminal_input' or
        `terminal_output'.
This commit is contained in:
robertmh 2008-11-10 08:49:26 +00:00
parent 132e411342
commit 6c529df74c
2 changed files with 25 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2008-11-10 Robert Millan <rmh@aybabtu.com>
* util/grub.d/00_header.in: Add backward compatibility check for
versions of terminal.mod that don't understand `terminal_input' or
`terminal_output'.
2008-11-09 Robert Millan <rmh@aybabtu.com> 2008-11-09 Robert Millan <rmh@aybabtu.com>
* commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister

View file

@ -59,7 +59,13 @@ case x${GRUB_TERMINAL_INPUT} in
# Just use the native terminal # Just use the native terminal
;; ;;
x*) x*)
echo "terminal_input ${GRUB_TERMINAL_INPUT}" cat << EOF
if terminal_input ${GRUB_TERMINAL_INPUT} ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_input
terminal ${GRUB_TERMINAL_INPUT}
fi
EOF
;; ;;
esac esac
@ -85,7 +91,11 @@ if font `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then
set gfxmode=${GRUB_GFXMODE} set gfxmode=${GRUB_GFXMODE}
insmod gfxterm insmod gfxterm
insmod ${video_backend} insmod ${video_backend}
terminal_output gfxterm if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi fi
EOF EOF
;; ;;
@ -93,6 +103,12 @@ EOF
# Just use the native terminal # Just use the native terminal
;; ;;
x*) x*)
echo "terminal_output ${GRUB_TERMINAL_OUTPUT}" cat << EOF
if terminal_output ${GRUB_TERMINAL_OUTPUT} ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal ${GRUB_TERMINAL_OUTPUT}
fi
EOF
;; ;;
esac esac