saving uncommitted changes in /etc prior to emerge run

This commit is contained in:
hasufell 2015-08-01 14:58:08 +02:00 committed by Hans Wurst
parent 2c2af51e5e
commit 0f4b958906

33
grub.d/._cfg0000_39_memtest86+ Executable file
View File

@ -0,0 +1,33 @@
#!/bin/sh
. /usr/share/grub/grub-mkconfig_lib
memtest=/boot/memtest86plus/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
memtest=/boot/memtest86plus/memtest.netbsd
if [ -f "${memtest}" ]; then
device="$("${grub_probe}" --target=device "${memtest}")"
path="$(make_system_path_relative_to_its_root "${memtest}")"
cat <<EOF
menuentry "Memtest86+ (netbsd)" {
EOF
prepare_grub_to_access_device "${device}" | grub_add_tab
cat <<EOF
knetbsd "${path}"
}
EOF
fi