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 | 8e485d06e950ed050f038a9c37afdcc4ca9d78ae (patch) | |
tree | a059e4eb9737202db22e22d3fd1f0c86ee1e017d /sys-apps/module-init-tools/files | |
parent | Update src_uri (diff) | |
download | historical-8e485d06e950ed050f038a9c37afdcc4ca9d78ae.tar.gz historical-8e485d06e950ed050f038a9c37afdcc4ca9d78ae.tar.bz2 historical-8e485d06e950ed050f038a9c37afdcc4ca9d78ae.zip |
Search for System.map with kernel suffixes as suggested by Lloeki #165134.
Package-Manager: portage-2.1.2-r6
Diffstat (limited to 'sys-apps/module-init-tools/files')
-rwxr-xr-x | sys-apps/module-init-tools/files/modules-update | 5 |
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" |