Blame SOURCES/find-provides.ksyms

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