#!/bin/sh . /usr/share/grub/grub-mkconfig_lib mt32=/boot/memtest86plus/memtest.i586 mt64=/boot/memtest86plus/memtest.x86_64 if [ $(ls /boot/memtest86plus | wc -l) -gt 1 ]; then multiple_memtest=true fi submenu_indentation="" if [ "${multiple_memtest}" = "true" ] && [ "${GRUB_DISABLE_SUBMENU}" != "y" ]; then submenu_indentation="${grub_tab}" cat <&2 device="$("${grub_probe}" --target=device "${mt32}")" path="$(make_system_path_relative_to_its_root "${mt32}")" cat <&2 device="$("${grub_probe}" --target=device "${mt64}")" path="$(make_system_path_relative_to_its_root "${mt64}")" cat <