summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorThorsten Leemhuis <fedora@leemhuis.info>2018-04-09 18:48:58 +0200
committerThorsten Leemhuis <fedora@leemhuis.info>2018-04-09 18:48:58 +0200
commitac9ac5337e8efc8558fb0618acc608b3ecb5ca5f (patch)
treedb09bab9fe61db0704157becfc396d922eb1a736 /scripts
parent6e45ec3ba8785ed0925eafb2727c31459bf5d10b (diff)
parentd1b9c24e9410811046d7f579152b11060f36e3b0 (diff)
downloadkernel-ac9ac5337e8efc8558fb0618acc608b3ecb5ca5f.tar.gz
kernel-ac9ac5337e8efc8558fb0618acc608b3ecb5ca5f.tar.xz
kernel-ac9ac5337e8efc8558fb0618acc608b3ecb5ca5f.zip
Merge remote-tracking branch 'origin/f28' into f28-user-thl-vanilla-fedora
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/stable-update.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/stable-update.sh b/scripts/stable-update.sh
index cd3595a7c..53607f004 100755
--- a/scripts/stable-update.sh
+++ b/scripts/stable-update.sh
@@ -47,6 +47,21 @@ if [ ! -f patch-$1.xz ]; then
fi
fi
+if [ ! -f "patch-$1.sign" ]; then
+ wget "https://cdn.kernel.org/pub/linux/kernel/v4.x/patch-$1.sign"
+ if [ ! $? -eq 0 ]; then
+ echo "Signature download failed"
+ exit 1
+ fi
+fi
+
+xzcat "patch-$1.xz" | gpg2 --verify "patch-$1.sign" -
+if [ ! $? -eq 0 ]; then
+ echo "Patch file has invalid or untrusted signature!"
+ echo "See https://www.kernel.org/category/signatures.html"
+ exit 1
+fi
+
grep $1 sources &> /dev/null
if [ ! $? -eq 0 ]; then
# thl is not an allowed uploader, skip this