diff options
Diffstat (limited to 'sys-apps/memtest86/files/39_memtest86')
-rw-r--r-- | sys-apps/memtest86/files/39_memtest86 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sys-apps/memtest86/files/39_memtest86 b/sys-apps/memtest86/files/39_memtest86 new file mode 100644 index 000000000000..a736bce6a316 --- /dev/null +++ b/sys-apps/memtest86/files/39_memtest86 @@ -0,0 +1,18 @@ +#!/bin/sh + +. /usr/share/grub/grub-mkconfig_lib + +memtest=/boot/memtest86/memtest + +if [ -f "${memtest}" ]; then + device="$("${grub_probe}" --target=device "${memtest}")" + path="$(make_system_path_relative_to_its_root "${memtest}")" + cat <<EOF +menuentry "MemTest86" { +EOF + prepare_grub_to_access_device "${device}" | grub_add_tab + cat <<EOF + linux16 "${path}" +} +EOF +fi |