+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>
* commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
# Just use the native terminal
;;
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
set gfxmode=${GRUB_GFXMODE}
insmod gfxterm
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
EOF
;;
# Just use the native terminal
;;
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