aboutsummaryrefslogtreecommitdiffstats
path: root/kmod.prov
diff options
context:
space:
mode:
Diffstat (limited to 'kmod.prov')
-rwxr-xr-xkmod.prov3
1 files changed, 2 insertions, 1 deletions
diff --git a/kmod.prov b/kmod.prov
index 0a81e42..dcd9aa1 100755
--- a/kmod.prov
+++ b/kmod.prov
@@ -13,6 +13,7 @@ if (/^srcversion:/) {
'
dkmslist=$(echo "$provideslist" | egrep '/usr/src/[^/]*/dkms.conf$')
[ -n "$dkmslist" ] && echo $dkmslist | while read d; do
+ VERSION=`sed -rne 's/^PACKAGE_VERSION="?([^"]+)"?$/\1/;T;p' $d`
[ -z "$VERSION" ] && continue
MODULES=`sed -rne 's/^BUILT_MODULE_NAME\[[0-9]+\]="?([^"]+)"?$/\1/;T;p' $d`
if [ -z "$MODULES" ]; then
@@ -20,6 +21,6 @@ dkmslist=$(echo "$provideslist" | egrep '/usr/src/[^/]*/dkms.conf$')
MODULES=`sed -rne 's/^PACKAGE_NAME="?([^"]+)"?$/\1/;T;p' $d`
fi
echo "$MODULES" | while read m; do
- echo "kmod($m)"
+ echo "kmod($m) = $VERSION"
done
done