Jiri Slaby
a14c1f2f97
OBS-URL: https://build.opensuse.org/package/show/Kernel:stable/kernel-source?expand=0&rev=1570
14 lines
293 B
Bash
14 lines
293 B
Bash
#!/bin/sh
|
|
|
|
rc=0
|
|
for file in $(find "$@" -name '*.ko' -o -name '*.ko.xz' \
|
|
-o -name '*.ko.gz' -o -name '*.ko.zst'); do
|
|
l=$(/sbin/modinfo -F license "$file")
|
|
if [ -z "$l" ]; then
|
|
echo "ERROR: No license is included for module ${file##*/lib/modules/}"
|
|
rc=1
|
|
fi
|
|
done
|
|
|
|
exit $rc
|