mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
rockchip: disallow upgrades from legacy kernels
This commit is contained in:
parent
07446da506
commit
8535bcf27b
@ -1,6 +1,15 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
|
# detect legacy kernel installs and abort to prevent upgrades
|
||||||
|
case $(uname -r) in
|
||||||
|
4.4*)
|
||||||
|
echo "Updates from legacy kernels are not supported!"
|
||||||
|
sleep 10
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Allow upgrades between arm and aarch64
|
# Allow upgrades between arm and aarch64
|
||||||
if [ "$1" = "@PROJECT@.arm" -o "$1" = "@PROJECT@.aarch64" ]; then
|
if [ "$1" = "@PROJECT@.arm" -o "$1" = "@PROJECT@.aarch64" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user