Blame SOURCES/find-provides.ksyms

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