Update to work with 5.x

This commit is contained in:
Laura Abbott 2019-09-23 08:19:02 -04:00
parent 9f3562b7a0
commit 06340ec177
1 changed files with 16 additions and 14 deletions

View File

@ -35,27 +35,29 @@ if [ -z $VERSION ]; then
fi fi
if [ ! -f patch-$1.xz ]; then if [ ! -f patch-$1.xz ]; then
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/patch-$1.xz wget https://cdn.kernel.org/pub/linux/kernel/v5.x/patch-$1.xz
if [ ! $? -eq 0 ]; then if [ ! $? -eq 0 ]; then
echo "Download fail" echo "Download fail"
exit 1 exit 1
fi fi
fi fi
if [ ! -f "patch-$1.sign" ]; then # This all needs to be updated for the new generation system
wget "https://cdn.kernel.org/pub/linux/kernel/v4.x/patch-$1.sign" #
if [ ! $? -eq 0 ]; then # if [ ! -f "patch-$1.sign" ]; then
echo "Signature download failed" # wget "https://cdn.kernel.org/pub/linux/kernel/v4.x/patch-$1.sign"
exit 1 # if [ ! $? -eq 0 ]; then
fi # echo "Signature download failed"
fi # exit 1
# fi
# fi
xzcat "patch-$1.xz" | gpg2 --verify "patch-$1.sign" - # xzcat "patch-$1.xz" | gpg2 --verify "patch-$1.sign" -
if [ ! $? -eq 0 ]; then # if [ ! $? -eq 0 ]; then
echo "Patch file has invalid or untrusted signature!" # echo "Patch file has invalid or untrusted signature!"
echo "See https://www.kernel.org/category/signatures.html" # echo "See https://www.kernel.org/category/signatures.html"
exit 1 # exit 1
fi # fi
grep $1 sources &> /dev/null grep $1 sources &> /dev/null
if [ ! $? -eq 0 ]; then if [ ! $? -eq 0 ]; then