summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmod-sign.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/mod-sign.sh b/mod-sign.sh
index 9d95d48a0..0e7b58c5c 100755
--- a/mod-sign.sh
+++ b/mod-sign.sh
@@ -26,3 +26,13 @@ do
mv ${dir}/${file}.signed ${dir}/${file}
rm -f ${dir}/${file}.{sig,dig}
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