dkms: don't build unexistent modules in the postinst kernel hook.

This commit is contained in:
Juan RP 2012-11-20 00:00:13 +01:00
parent 000fb5cb07
commit b54ac15d65
2 changed files with 6 additions and 1 deletions

View file

@ -41,6 +41,11 @@ while [ $# -ne 0 ]; do
status=$(dkms status -m ${module} -v ${modulever} -k ${VERSION})
if [ $(echo "$status"|grep -c ": built") -eq 0 ]; then
# Check if the module is still there.
if [ ! -f usr/src/${module}-${modulever}/dkms.conf ]; then
echo "Skipping unexistent DKMS module: ${module}-${modulever}."
continue
fi
# Build the module
echo -n "Building DKMS module: ${module}-${modulever}... "
dkms build -q -m ${module} -v ${modulever} -k ${VERSION} -a ${ARCH}

View file

@ -4,7 +4,7 @@ version=2.2.0.3
homepage="http://linux.dell.com/dkms"
distfiles="${homepage}/permalink/dkms-$version.tar.gz"
depends="bash module-init-tools gcc make coreutils kernel-headers"
revision=1
revision=2
short_desc="Dynamic Kernel Modules System"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"