Warn after signing the modules if they are unsigned for some reason
This commit is contained in:
parent
8b1aec18c3
commit
e47265e619
10
mod-sign.sh
10
mod-sign.sh
@ -26,3 +26,13 @@ do
|
|||||||
mv ${dir}/${file}.signed ${dir}/${file}
|
mv ${dir}/${file}.signed ${dir}/${file}
|
||||||
rm -f ${dir}/${file}.{sig,dig}
|
rm -f ${dir}/${file}.{sig,dig}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
RANDOMMOD=$(find $moddir -type f -name '*.ko' | sort -R | head -n 1)
|
||||||
|
if [ "~Module signature appended~" != "$(tail -c 28 $RANDOMMOD)" ]; then
|
||||||
|
echo "*****************************"
|
||||||
|
echo "*** Modules are unsigned! ***"
|
||||||
|
echo "*****************************"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user