Warn after signing the modules if they are unsigned for some reason

This commit is contained in:
Kyle McMartin 2013-03-24 10:44:30 -04:00
parent 8b1aec18c3
commit e47265e619

View File

@ -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