Blame SOURCES/firmware.prov

67e50c
#!/bin/sh
67e50c
#
67e50c
# firmware.prov - Automatically extract any and all firmware dependencies from
67e50c
#                 kernel object (.ko) files and add to RPM deps.
67e50c
67e50c
IFS=$'\n'
67e50c
67e50c
for module in $(grep -E '/lib/modules/.+\.ko$') $*;
67e50c
do
67e50c
    for firmware in `/sbin/modinfo -F firmware $module`;
67e50c
    do
67e50c
        echo "firmware($firmware)"
67e50c
    done
67e50c
done