- if [ "x$is_first_entry" = xtrue ]; then
- linux_entry "${OS}" "${version}" simple \
- "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
-+ if [ "x${GRUB_DISABLE_SUBMENU}" = x ]; then
++ if [ "x${GRUB_DISABLE_SUBMENU}" != xtrue ]; then
+ if [ "x$is_first_entry" = xtrue ]; then
+ linux_entry "${OS}" "${version}" simple \
+ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
# add a closing '}' for the submenu command.
-if [ x"$is_first_entry" != xtrue ]; then
- echo '}'
-+if [ "x${GRUB_DISABLE_SUBMENU}" = x ]; then
++if [ "x${GRUB_DISABLE_SUBMENU}" != xtrue ]; then
+ if [ x"$is_first_entry" != xtrue ]; then
+ echo '}'
+ fi
fi
- if [ "x$is_first_entry" = xtrue ]; then
-+ if [ "x${GRUB_DISABLE_SUBMENU}" = x ]; then
++ if [ "x${GRUB_DISABLE_SUBMENU}" != xtrue ]; then
+ if [ "x$is_first_entry" = xtrue ]; then
linux_entry "${OS}" "${version}" "${xen_version}" simple \
"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}"
list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
done
- if [ x"$is_first_entry" != xtrue ]; then
-+ if [ "x${GRUB_DISABLE_SUBMENU}" = x ]; then
++ if [ "x${GRUB_DISABLE_SUBMENU}" != xtrue ]; then
+ if [ x"$is_first_entry" != xtrue ]; then
echo ' }'
+ fi