]> git.pld-linux.org Git - packages/grub2.git/commitdiff
- explicit check for true in new env var
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 15 Apr 2013 09:51:04 +0000 (11:51 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 15 Apr 2013 09:51:04 +0000 (11:51 +0200)
add-GRUB-DISABLE-SUBMENU-option.patch

index c4ffb92edfa1047b22888476682096652e105b92..54f733d568be685925c3585d14aa235512c717b9 100644 (file)
@@ -41,7 +41,7 @@ index e2b8ab3..9427a39 100644
 -  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}"
@@ -68,7 +68,7 @@ index e2b8ab3..9427a39 100644
  # 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
@@ -82,7 +82,7 @@ index e2b8ab3..9427a39 100644
        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}"
@@ -105,7 +105,7 @@ index e2b8ab3..9427a39 100644
        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
This page took 0.14244 seconds and 4 git commands to generate.