diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-02-03 23:24:32 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-02-03 23:24:32 +0000 |
commit | 89d332b2dce5e2d1444f92a6e995aef78b22ea4d (patch) | |
tree | 4d397faeef136c9a91f0533d10a0e0c1303f4df0 /sys-apps | |
parent | Update src_uri (diff) | |
download | gentoo-2-89d332b2dce5e2d1444f92a6e995aef78b22ea4d.tar.gz gentoo-2-89d332b2dce5e2d1444f92a6e995aef78b22ea4d.tar.bz2 gentoo-2-89d332b2dce5e2d1444f92a6e995aef78b22ea4d.zip |
Search for System.map with kernel suffixes as suggested by Lloeki #165134.
(Portage version: 2.1.2-r6)
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/module-init-tools/ChangeLog | 5 | ||||
-rwxr-xr-x | sys-apps/module-init-tools/files/modules-update | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sys-apps/module-init-tools/ChangeLog b/sys-apps/module-init-tools/ChangeLog index 465161c355fe..123dc557a8d9 100644 --- a/sys-apps/module-init-tools/ChangeLog +++ b/sys-apps/module-init-tools/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-apps/module-init-tools # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/ChangeLog,v 1.117 2007/02/02 15:16:31 gustavoz Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/ChangeLog,v 1.118 2007/02/03 23:24:32 vapier Exp $ + + 03 Feb 2007; Mike Frysinger <vapier@gentoo.org> files/modules-update: + Search for System.map with kernel suffixes as suggested by Lloeki #165134. 02 Feb 2007; Gustavo Zacarias <gustavoz@gentoo.org> module-init-tools-3.2.2-r2.ebuild: diff --git a/sys-apps/module-init-tools/files/modules-update b/sys-apps/module-init-tools/files/modules-update index 33e5c08f0124..bd6b8ebccc6b 100755 --- a/sys-apps/module-init-tools/files/modules-update +++ b/sys-apps/module-init-tools/files/modules-update @@ -402,11 +402,14 @@ if [[ -d ${depfile%/*} ]] ; then /boot /usr/src/linux "" do cfg="${cfg}/System.map" - [[ -f ${cfg} ]] && break + for suffix in -genkernel-${KV} -${KV} "" ; do + [[ -f ${cfg}${suffix} ]] && cfg="${cfg}${suffix}" && break 2 + done done [[ -n ${cfg} ]] && cfg="-F ${cfg}" depmod -a ${cfg} ${KV} eend $? + [[ ${VERBOSE} -gt 0 ]] && einfo "Ran: depmod -a ${cfg} ${KV}" fi else vewarn "The dir '${depfile}' does not exist, skipping call to depmod" |