Blame SOURCES/find-provides.ksyms

aa146a
#!/bin/bash
aa146a
filelist=$(sed "s/['\"]/\\\&/g")
aa146a
kolist=$(echo $filelist | tr '[:blank:]' \\n | grep -E '/lib/modules/.+\.ko$')
aa146a
echo $filelist | tr '[:blank:]' \\n | /usr/lib/rpm/redhat/find-provides.ksyms
aa146a
aa146a
for module in $kolist; do
aa146a
	modname=$(echo $module | sed 's|^.*/\([^/]*\)\.ko$|\1|')
aa146a
	if [ "$modname" != "$1" ]; then
aa146a
		echo "kmod-$modname = $2"
aa146a
	fi
aa146a
done | sort -u