Blame SOURCES/firmware.prov

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