blob: fe03e3a563b7678e9ed16edb41ffa7364ccbca61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
# This script reads filenames from STDIN and outputs any relevant provides
# information that needs to be included in the package.
IFS=$'\n'
filelist=($(cat))
#
# --- Kernel module hardware identifiers
# (e.g., modalias(pci:v0000109Ed00000878sv00000070sd0000FF01bc*sc*i*)
[ -x /usr/lib/rpm/find-supplements.ksyms ] &&
printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/find-supplements.ksyms "$@"
exit 0
|