summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/memtest86+/memtest86+-2.01.ebuild')
-rw-r--r--sys-apps/memtest86+/memtest86+-2.01.ebuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys-apps/memtest86+/memtest86+-2.01.ebuild b/sys-apps/memtest86+/memtest86+-2.01.ebuild
index 4b341969e6ff..797d0a371f28 100644
--- a/sys-apps/memtest86+/memtest86+-2.01.ebuild
+++ b/sys-apps/memtest86+/memtest86+-2.01.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2008 Gentoo Foundation
+# 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.01.ebuild,v 1.2 2008/10/04 14:18:14 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86+/memtest86+-2.01.ebuild,v 1.3 2009/02/09 21:26:48 spock Exp $
inherit mount-boot eutils
@@ -54,8 +54,8 @@ pkg_postinst() {
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:1}-1)))"
+ 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 " > title=Memtest86Plus"