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'
|
|
|
|
|
2018-08-24 06:45:49 +00:00
|
|
|
for module in $(grep -E '/lib/modules/.+\.ko(\.gz|\.bz2|\.xz)?$') $*;
|
2021-06-03 15:21:41 +00:00
|
|
|
do
|
|
|
|
for firmware in `/sbin/modinfo -F firmware $module`;
|
|
|
|
do
|
|
|
|
echo "firmware($firmware)"
|
|
|
|
done
|
|
|
|
done
|