Blame SOURCES/find-provides.ksyms

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