#!/bin/sh
#
# The GRUB_DISABLE_SUBMENU option used to be different than others since it was
# mentioned in the documentation that has to be set to 'y' instead of 'true' to
# enable it. This caused a lot of confusion to users that set the option to 'y',
# 'yes' or 'true'. This was fixed but all of these values must be supported now.
if [ "x${GRUB_DISABLE_SUBMENU}" = xyes ] || [ "x${GRUB_DISABLE_SUBMENU}" = xy ]; then
  GRUB_DISABLE_SUBMENU="true"
fi
[ "x${GRUB_DISABLE_SUBMENU}" = xtrue ] && exit 0
echo "submenu 'UEFI boot options' {"
