From d48975110137093041e5d297d5902893345c1b3f Mon Sep 17 00:00:00 2001 From: david Date: Wed, 23 Aug 2017 11:28:14 +0200 Subject: [PATCH] next try --- mxgrub/mxgrub | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mxgrub/mxgrub b/mxgrub/mxgrub index 6f05551..f43fb84 100755 --- a/mxgrub/mxgrub +++ b/mxgrub/mxgrub @@ -193,16 +193,11 @@ if [ -e /etc/local/USB.usb ]; then menuentry "mariuxUSB" --unrestricted { save_env chosen ; linux /boot/bzImage.x86_64 crashkernel=256M root=LABEL=rootusb ro ; initrd /boot/grub/initramfs.igz } else -menuentry "$MARIUX_DEFAULT" --unrestricted { save_env chosen="$submenu>$MARIUX_DEFAULT" ; linux /boot/bzImage.x86_64 crashkernel=256M root=LABEL=root ro console=ttyS1,115200n8 console=tty0 ; initrd /boot/grub/initramfs.igz } +menuentry "$MARIUX_DEFAULT" --unrestricted { set chosen="$submenu>$MARIUX_DEFAULT" ; save_env chosen ; linux /boot/bzImage.x86_64 crashkernel=256M root=LABEL=root ro console=ttyS1,115200n8 console=tty0 ; initrd /boot/grub/initramfs.igz } submenu "$submenu" --unrestricted { $kernellist } - if [ "\$chosen" = "\$default" ]; then - set default="$submenu>\$chosen" - unset chosen - fi - if [ \$chosen ]; then set default=\$chosen unset chosen # must be clear to get a clean value from menuentry