13 lines
226 B
Plaintext
13 lines
226 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
rc=0
|
||
|
for file in $(find "$@" -name '*.ko'); 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
|