diff options
author | Thorsten Leemhuis <fedora@leemhuis.info> | 2018-06-06 21:08:17 +0200 |
---|---|---|
committer | Thorsten Leemhuis <fedora@leemhuis.info> | 2018-06-06 21:08:17 +0200 |
commit | b1fc6b476c1611913acebf0cbc3f2d2810a0980e (patch) | |
tree | 76e5f52647d0b96bd2b60a15c4ee432fa5ac59a7 /scripts/stable-update.sh | |
parent | a50724433ddcd21528d22b857f77faf500b15d25 (diff) | |
parent | 1debdf05d152262113e10ef380a6dadf54782f21 (diff) | |
download | kernel-b1fc6b476c1611913acebf0cbc3f2d2810a0980e.tar.gz kernel-b1fc6b476c1611913acebf0cbc3f2d2810a0980e.tar.xz kernel-b1fc6b476c1611913acebf0cbc3f2d2810a0980e.zip |
merge stabilization upstream branch
Diffstat (limited to 'scripts/stable-update.sh')
-rwxr-xr-x | scripts/stable-update.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/stable-update.sh b/scripts/stable-update.sh index 23b172207..2cbda8a34 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 |