2021-06-03 15:21:41 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# firmware.prov - Automatically extract any and all firmware dependencies from
|
|
|
|
# kernel object (.ko) files and add to RPM deps.
|
|
|
|
|
|
|
|
IFS=$'\n'
|
|
|
|
|
2021-11-17 11:38:00 +00:00
|
|
|
for module in $(grep -E '/lib/modules/.+\.ko(\.gz|\.bz2|\.xz|\.zst)?$') $*;
|
2021-06-03 15:21:41 +00:00
|
|
|
do
|
|
|
|
for firmware in `/sbin/modinfo -F firmware $module`;
|
|
|
|
do
|
|
|
|
echo "firmware($firmware)"
|
|
|
|
done
|
|
|
|
done
|