syslinux: add memtest menu entry only if including memtest
This commit is contained in:
parent
7ffd2288d9
commit
31fa6abd36
|
@ -274,6 +274,14 @@ else
|
||||||
sed -i "s#@OPTIONAL_INSTALLER_INCLUDE@#include install.cfg#g" "${_TARGET}"/menu.cfg
|
sed -i "s#@OPTIONAL_INSTALLER_INCLUDE@#include install.cfg#g" "${_TARGET}"/menu.cfg
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Replace placeholder for optional memtest menu entry include
|
||||||
|
if [ ! -f "binary/${_INITRAMFS}/memtest" ]; then
|
||||||
|
rm -f "${_TARGET}"/memtest.cfg
|
||||||
|
sed -i -e "#@OPTIONAL_MEMTEST_INCLUDE@#d" "${_TARGET}"/advanced.cfg
|
||||||
|
else
|
||||||
|
sed -i -e "s#@OPTIONAL_MEMTEST_INCLUDE@#include memtest.cfg#g" "${_TARGET}"/advanced.cfg
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -e "${_TARGET}/splash.svg" ]
|
if [ -e "${_TARGET}/splash.svg" ]
|
||||||
then
|
then
|
||||||
case "${LB_BUILD_WITH_CHROOT}" in
|
case "${LB_BUILD_WITH_CHROOT}" in
|
||||||
|
|
|
@ -3,7 +3,4 @@ label hdt
|
||||||
menu title Hardware Detection Tool (HDT)
|
menu title Hardware Detection Tool (HDT)
|
||||||
com32 hdt.c32
|
com32 hdt.c32
|
||||||
|
|
||||||
label memtest
|
@OPTIONAL_MEMTEST_INCLUDE@
|
||||||
menu label ^Memory Diagnostic Tool (memtest86+)
|
|
||||||
menu title Memory Diagnostic Tool (memtest86+)
|
|
||||||
linux /live/memtest
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
label memtest
|
||||||
|
menu label ^Memory Diagnostic Tool (memtest86+)
|
||||||
|
menu title Memory Diagnostic Tool (memtest86+)
|
||||||
|
linux /live/memtest
|
|
@ -3,7 +3,4 @@ label hdt
|
||||||
menu title Hardware Detection Tool (HDT)
|
menu title Hardware Detection Tool (HDT)
|
||||||
com32 hdt.c32
|
com32 hdt.c32
|
||||||
|
|
||||||
label memtest
|
@OPTIONAL_MEMTEST_INCLUDE@
|
||||||
menu label ^Memory Diagnostic Tool (memtest86+)
|
|
||||||
menu title Memory Diagnostic Tool (memtest86+)
|
|
||||||
linux /live/memtest
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
label memtest
|
||||||
|
menu label ^Memory Diagnostic Tool (memtest86+)
|
||||||
|
menu title Memory Diagnostic Tool (memtest86+)
|
||||||
|
linux /live/memtest
|
|
@ -3,7 +3,4 @@ label hdt
|
||||||
menu title Hardware Detection Tool (HDT)
|
menu title Hardware Detection Tool (HDT)
|
||||||
com32 hdt.c32
|
com32 hdt.c32
|
||||||
|
|
||||||
label memtest
|
@OPTIONAL_MEMTEST_INCLUDE@
|
||||||
menu label ^Memory Diagnostic Tool (memtest86+)
|
|
||||||
menu title Memory Diagnostic Tool (memtest86+)
|
|
||||||
linux /live/memtest
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
label memtest
|
||||||
|
menu label ^Memory Diagnostic Tool (memtest86+)
|
||||||
|
menu title Memory Diagnostic Tool (memtest86+)
|
||||||
|
linux /live/memtest
|
|
@ -3,7 +3,4 @@ label hdt
|
||||||
menu title Hardware Detection Tool (HDT)
|
menu title Hardware Detection Tool (HDT)
|
||||||
com32 hdt.c32
|
com32 hdt.c32
|
||||||
|
|
||||||
label memtest
|
@OPTIONAL_MEMTEST_INCLUDE@
|
||||||
menu label ^Memory Diagnostic Tool (memtest86+)
|
|
||||||
menu title Memory Diagnostic Tool (memtest86+)
|
|
||||||
linux /live/memtest
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
label memtest
|
||||||
|
menu label ^Memory Diagnostic Tool (memtest86+)
|
||||||
|
menu title Memory Diagnostic Tool (memtest86+)
|
||||||
|
linux /live/memtest
|
Loading…
Reference in New Issue