Blame SOURCES/find-provides.ksyms

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