aboutsummaryrefslogtreecommitdiffstats
path: root/main/syslinux
diff options
context:
space:
mode:
Diffstat (limited to 'main/syslinux')
-rwxr-xr-xmain/syslinux/update-extlinux12
-rw-r--r--main/syslinux/update-extlinux.conf5
2 files changed, 15 insertions, 2 deletions
diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux
index 1c5fc5c455..66bc0edc73 100755
--- a/main/syslinux/update-extlinux
+++ b/main/syslinux/update-extlinux
@@ -143,7 +143,17 @@ done
echo "MENU SEPARATOR" >> $conf.new
echo "" >> $conf.new
-if [ -f "/boot/memtest" ]; then
+if [ -f "/boot/hdt.c32" ]; then
+ everbose "Found Hardware Detection Tool: /boot/hdt.c32"
+ echo "LABEL hdt" >> $conf.new
+ echo " MENU LABEL Hardware info" >> $conf.new
+ echo " COM32 hdt.c32" >> $conf.new
+ if [ -f "/boot/memtest" ]; then
+ everbose "Found memtest86+: /boot/memtest"
+ echo " APPEND memtest=memtest" >> $conf.new
+ fi
+ echo "" >> $conf.new
+elif [ -f "/boot/memtest" ]; then
everbose "Found memtest86+: /boot/memtest"
echo "LABEL memtest" >> $conf.new
echo " MENU LABEL Memtest86+" >> $conf.new
diff --git a/main/syslinux/update-extlinux.conf b/main/syslinux/update-extlinux.conf
index 5a36a1f1c1..6c83349d4e 100644
--- a/main/syslinux/update-extlinux.conf
+++ b/main/syslinux/update-extlinux.conf
@@ -45,4 +45,7 @@ xen_opts=dom0_mem=256M
# if you copy /usr/share/syslinux/reboot.c32 to /boot/, a menu entry will be auto-generated for it
-# a menu entry will also be auto-generated for /boot/memtest, if you download it and install it
+# if you copy /usr/share/syslinux/hdt.c32 to /boot/, a menu entry will be auto-generated for it
+
+# if you download and install /boot/memtest, then if HDT is present it will use it, else a separate
+# menu entry will be auto-generated for memtest