From 692a44574241c32e213f48884a653a9535021091 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Tue, 25 Jan 2011 20:59:47 +0100 Subject: Support .ko.gz kernel modules, in addition to .ko We used to expect only .ko as a kernel module name. Also accept .ko.gz, so we can reduce the installed size of the kernel26 package. --- install/autodetect | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'install') diff --git a/install/autodetect b/install/autodetect index 82dca3c..5c86eb0 100644 --- a/install/autodetect +++ b/install/autodetect @@ -28,7 +28,7 @@ install () for fs in ${fss}; do allfs="${fs} $(modprobe --set-version ${KERNELVERSION} --resolve-alias ${fs})" for mod in ${allfs}; do - for modfile in $(find "${MODULEDIR}" -type f -name "${mod}.ko"); do + for modfile in $(find "${MODULEDIR}" -type f -name "${mod}.ko" -or -name "${mod}.ko.gz"); do if [ -n "${modfile}" ]; then AUTODETECT="${AUTODETECT} ${modfile}" fi @@ -54,7 +54,8 @@ install () fi for m in ${AUTODETECT}; do - modname="$(basename ${m%.ko})" + modname="${m%.gz}" + modname="$(basename ${modname%.ko})" echo "${modname}" >> "${MODULE_FILE}" done -- cgit v1.2.3-24-g4f1b