amlogic: prevent upgrade from 4.9 kernels

This commit is contained in:
chewitt 2020-09-19 15:21:44 +00:00 committed by Christian Hewitt
parent 4f9a7bcdbb
commit f253c5b838

View File

@ -4,11 +4,13 @@
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv) # Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
# detect legacy kernel installs and abort to prevent upgrades # detect legacy kernel installs and abort to prevent upgrades
if [ "$(uname -r)" = "3.14.29" ]; then case $(uname -r) in
echo "Update from 3.14 is not supported!" 3.14*|4.9*)
sleep 10 echo "Updates from Amlogic vendor kernels are not supported!"
exit 1 sleep 10
fi exit 1
;;
esac
# allow upgrades between aarch64 and arm images # allow upgrades between aarch64 and arm images
PROJECT=$("$1" | cut -d. -f1) PROJECT=$("$1" | cut -d. -f1)