diff options
author | Dubiousjim <dubiousjim@gmail.com> | 2013-06-29 16:41:26 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-06-30 11:19:59 +0000 |
commit | 5eebfc3d655b327fcd0e6ba306e226516a70ce2f (patch) | |
tree | d75ebaf0afe3b335a5b065767f5884abbe26a260 /main/syslinux/update-extlinux | |
parent | faf4eed0066294cad5e0b71f5a9315f42abd9a33 (diff) | |
download | aports-5eebfc3d655b327fcd0e6ba306e226516a70ce2f.tar.bz2 aports-5eebfc3d655b327fcd0e6ba306e226516a70ce2f.tar.xz |
main/syslinux: add Hardware Detection Tool entry
HDT provides a curses-like interface to display lots of hardware info
about your machine at bootloader time.
We don't install /boot/hdt.c32, but if it's present (it can be copied from
/usr/share/syslinux/hdt.c32), we add a menu entry for it---in preference to,
rather than in addition to, memtest, since HDT has a menu entry which invokes
memtest.
Using HDT to its full capacity requires finding or generating modules.pcimap
and pci.ids files for your machine, and installing them in /boot. We might want
to document this, which I don't here (but the online docs for HDT do). These
aren't required to use other functionality of HDT; and it's pretty useful
already without those.
Diffstat (limited to 'main/syslinux/update-extlinux')
-rwxr-xr-x | main/syslinux/update-extlinux | 12 |
1 files changed, 11 insertions, 1 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 |