summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/memtest86+/memtest86+-2.11.ebuild')
-rw-r--r--sys-apps/memtest86+/memtest86+-2.11.ebuild19
1 files changed, 3 insertions, 16 deletions
diff --git a/sys-apps/memtest86+/memtest86+-2.11.ebuild b/sys-apps/memtest86+/memtest86+-2.11.ebuild
index 05e9a31a6751..4c80150c8c48 100644
--- a/sys-apps/memtest86+/memtest86+-2.11.ebuild
+++ b/sys-apps/memtest86+/memtest86+-2.11.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86+/memtest86+-2.11.ebuild,v 1.2 2009/02/09 21:26:48 spock Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86+/memtest86+-2.11.ebuild,v 1.3 2009/03/22 08:40:40 spock Exp $
inherit mount-boot eutils
@@ -45,22 +45,9 @@ pkg_postinst() {
einfo "You may wish to update your bootloader configs"
einfo "by adding these lines:"
- # a little magic to make users' life as easy as possible ;)
- local fstab=${ROOT}/etc/fstab
- local root="(hd0,0)"
- local res=$(awk '$2 == "/boot" {print $1}' "${fstab}")
- if [[ -z ${res} ]] ; then
- res=$(awk '$2 == "/" {print $1}' "${fstab}")
- fi
- if [[ -n ${res} ]] ; then
- # transform /dev/hd* magic into grub naming ...
- # /dev/hda1 -> a1 -> 01
- root=$(echo "${res}" | grep -o '[a-z][0-9]\+' | tr -t a-z 0123456789)
- root="(hd${root:0:1},$((${root:1:3}-1)))"
- fi
- einfo " - For grub:"
+ einfo " - For grub: (replace '?' with correct numbers for your boot partition)"
einfo " > title=Memtest86Plus"
- einfo " > root ${root}"
+ einfo " > root (hd?,?)"
einfo " > kernel /boot/memtest86plus/memtest.bin"
einfo " - For lilo:"