From 2f67bc3c3d471de2afa9187847e4181c7c39aaa7 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 25 Sep 2007 11:55:51 +0000 Subject: substitute $PACKAGE_NAME in kmod() provides --- kmod.prov | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmod.prov b/kmod.prov index 435d887..5e39538 100755 --- a/kmod.prov +++ b/kmod.prov @@ -19,7 +19,7 @@ dkmslist=$(echo "$provideslist" | egrep '/usr/src/[^/]*/dkms.conf$') MODULES=`sed -rne 's/^BUILT_MODULE_NAME\[[0-9]+\]="?([^"]+)"?$/\1/;T;p' $d` # default on PACKAGE_NAME if no BUILT_MODULE_NAME is specified [ -z "$MODULES" ] && MODULES=$PACKAGE_NAME - echo "$MODULES" | while read m; do + echo "$MODULES" | sed -re "s/\\\$PACKAGE_NAME/$PACKAGE_NAME/" | while read m; do echo "kmod($m) = $VERSION" done done -- cgit v1.2.1