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)
# detect legacy kernel installs and abort to prevent upgrades
if [ "$(uname -r)" = "3.14.29" ]; then
echo "Update from 3.14 is not supported!"
case $(uname -r) in
3.14*|4.9*)
echo "Updates from Amlogic vendor kernels are not supported!"
sleep 10
exit 1
fi
;;
esac
# allow upgrades between aarch64 and arm images
PROJECT=$("$1" | cut -d. -f1)