summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-02-03 23:24:32 +0000
committerMike Frysinger <vapier@gentoo.org>2007-02-03 23:24:32 +0000
commit89d332b2dce5e2d1444f92a6e995aef78b22ea4d (patch)
tree4d397faeef136c9a91f0533d10a0e0c1303f4df0 /sys-apps/module-init-tools/files
parentUpdate src_uri (diff)
downloadgentoo-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/module-init-tools/files')
-rwxr-xr-xsys-apps/module-init-tools/files/modules-update5
1 files changed, 4 insertions, 1 deletions
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"