X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from dal-a2.localdomain (unknown [74.117.189.115]) by mail.alpinelinux.org (Postfix) with ESMTP id C0E49DC0091 for ; Fri, 28 Jun 2013 14:42:14 +0000 (UTC) Received: from ncopa-desktop.alpinelinux.org (3.203.202.84.customer.cdi.no [84.202.203.3]) (using SSLv3 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ncopa@tanael.org) by dal-a2.localdomain (Postfix) with ESMTPSA id 103E5BC2AC4; Fri, 28 Jun 2013 14:42:13 +0000 (UTC) Date: Fri, 28 Jun 2013 16:42:11 +0200 From: Natanael Copa To: Dubiousjim Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] [PATCH 6/8] main/syslinux: add Hardware Detection Tool entry Message-ID: <20130628164211.2a418d9c@ncopa-desktop.alpinelinux.org> In-Reply-To: <5f18d6e52e6cb88ebd2efaeba2eb8a77f0366e87.1372318132.git.dubiousjim@gmail.com> References: <5f18d6e52e6cb88ebd2efaeba2eb8a77f0366e87.1372318132.git.dubiousjim@gmail.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.17; x86_64-unknown-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 27 Jun 2013 03:32:19 -0400 Dubiousjim wrote: > 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. > --- > main/syslinux/update-extlinux | 12 +++++++++++- > main/syslinux/update-extlinux.conf | 2 +- > 2 files changed, 12 insertions(+), 2 deletions(-) > > diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux > index 1c5fc5c..66bc0ed 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 7be434b..b548d7e 100644 > --- a/main/syslinux/update-extlinux.conf > +++ b/main/syslinux/update-extlinux.conf > @@ -43,5 +43,5 @@ default=grsec > # dom0_mem=256M (give domain-0 environment 256M ram) > xen_opts=dom0_mem=256M > > -# neither of /boot/memtest or /boot/reboot.c32 are installed by default > +# none of /boot/memtest, /boot/hdt.c32, or /boot/reboot.c32 are installed by default > # but entries for them will be auto-generated if they're present ACK --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---