#!/bin/sh . /usr/share/grub/grub-mkconfig_lib memtest=/boot/memtest86plus/memtest memtestbsd=/boot/memtest86plus/memtest.netbsd if [ -f "${memtest}" ] && [ -f "${memtestbsd}" ]; 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 "${memtest}")" path="$(make_system_path_relative_to_its_root "${memtest}")" cat <&2 device="$("${grub_probe}" --target=device "${memtestbsd}")" path="$(make_system_path_relative_to_its_root "${memtestbsd}")" cat <