diff options
-rwxr-xr-x | kmod.prov | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |