diff options
-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" |