X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 7D42DDC72AE for ; Sat, 29 Jun 2013 20:41:40 +0000 (UTC) Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 1E1C521106 for ; Sat, 29 Jun 2013 16:41:32 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute5.internal (MEProxy); Sat, 29 Jun 2013 16:41:34 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:subject:date:message-id :in-reply-to:references; s=smtpout; bh=O2KCsRIEZvO17P+YByN9k5RHN h0=; b=ddatqhA51FOyKhgyI8wb3GOUxKgDr18F3T87+c+Vpgpbc+7rRbWPx3BWM wEUdKegH0Jr7QP486UGIGlXrIr4QH8/zVzq1BGwtIzI7U1rWlDfxdkwGAVRGXoaS Z9FYMXpsGrbUICv9Jx6i4i+b/FdRDfKGuaszVCfup1hzASK5B0= X-Sasl-enc: TZJNNxLw9gB2NkFbGrq4EIFxAZxfSuZcZqy/19LmTAEx 1372538492 Received: from localhost (unknown [69.86.161.244]) by mail.messagingengine.com (Postfix) with ESMTPA id 089CC68048F for ; Sat, 29 Jun 2013 16:41:31 -0400 (EDT) From: Dubiousjim To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH 6/9] main/syslinux: add Hardware Detection Tool entry Date: Sat, 29 Jun 2013 16:41:26 -0400 Message-Id: X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: 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 | 5 ++++- 2 files changed, 15 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 5a36a1f..6c83349 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 -- 1.8.3.1 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---