summaryrefslogtreecommitdiffstats
path: root/scripts/stable-update.sh
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@fedoraproject.org>2018-06-06 14:01:43 -0500
committerJustin M. Forbes <jforbes@fedoraproject.org>2018-06-06 14:01:43 -0500
commit1debdf05d152262113e10ef380a6dadf54782f21 (patch)
tree8a45335d044c160553d7c923780ec0a50d5be8f5 /scripts/stable-update.sh
parent51da24b176436eb8b8f9305990dda2b6e37879bb (diff)
downloadkernel-1debdf05d152262113e10ef380a6dadf54782f21.tar.gz
kernel-1debdf05d152262113e10ef380a6dadf54782f21.tar.xz
kernel-1debdf05d152262113e10ef380a6dadf54782f21.zip
Linux v4.17
Diffstat (limited to 'scripts/stable-update.sh')
-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 eefd9a96d..2ea5fb78b 100755
--- a/scripts/stable-update.sh
+++ b/scripts/stable-update.sh
@@ -42,6 +42,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
fedpkg upload patch-$1.xz