Blame SOURCES/find-provides.ksyms

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