3cb3054de7
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/redhat-rpm-config#68541612591bce70d6ea46de1f747e6259d71636
15 lines
336 B
Bash
15 lines
336 B
Bash
#!/bin/sh
|
|
#
|
|
# firmware.prov - Automatically extract any and all firmware dependencies from
|
|
# kernel object (.ko) files and add to RPM deps.
|
|
|
|
IFS=$'\n'
|
|
|
|
for module in $(grep -E '/lib/modules/.+\.ko$') $*;
|
|
do
|
|
for firmware in `/sbin/modinfo -F firmware $module`;
|
|
do
|
|
echo "firmware($firmware)"
|
|
done
|
|
done
|