forked from pool/kernel-source-longterm
eea487f208
OBS-URL: https://build.opensuse.org/package/show/Kernel:slowroll/kernel-source-longterm?expand=0&rev=1
11 lines
290 B
Bash
11 lines
290 B
Bash
#!/bin/sh -e
|
|
flist=$1
|
|
modules=$2
|
|
output=$3
|
|
mod_builtin=$4
|
|
|
|
while read MOD ; do
|
|
[ -n "$MOD" ] || continue
|
|
cat $flist | grep -E "/$MOD[.]ko([.]xz|[.]gz|[.]zst)?\$" >> $output || { grep -q /$MOD[.]ko\$ $mod_builtin && echo Module $MOD built-in ;} || echo Module $MOD missing
|
|
done < $modules
|