This commit is contained in:
parent
6d8d26ec13
commit
6c98fcd652
10
firmware.sh
10
firmware.sh
@ -69,11 +69,13 @@ if test "$1" = "--find-supplements" -a -n "$cache" ; then
|
||||
/sbin/modinfo -F firmware "$ko" | sed -e "s@\$@ $ko@"
|
||||
done > $cache
|
||||
fi
|
||||
while read fw ; do
|
||||
hits=$(while read fw ; do
|
||||
sed -n -e "s@^${fw#$RPM_BUILD_ROOT/lib/firmware/} @@p" < "$cache"
|
||||
done | sort | \
|
||||
RPMBUILD_SPECFILE=/dev/null /usr/lib/rpm/find-supplements.ksyms | \
|
||||
sed 's/^modalias(kernel-[^:]*:/modalias(/' # strip the kernel-$flavor: prefix
|
||||
done | sort)
|
||||
if test -n "$hits"; then
|
||||
echo "$hits" | RPMBUILD_SPECFILE=/dev/null /usr/lib/rpm/find-supplements.ksyms | \
|
||||
sed 's/^modalias(kernel-[^:]*:/modalias(/' # strip the kernel-$flavor: prefix
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user