From a2c61d79065f74a37ef1c041b6235f16bf5cb2d2 Mon Sep 17 00:00:00 2001 From: Alex Bee Date: Sat, 27 Feb 2021 19:29:03 +0100 Subject: [PATCH] Rockchip: allow updates for MiQi and Tinker devices MiQi and Tinker devices have been merged to RK3288 device at some point after LE9.2 release. This allows updating for them as well through mapping to the new RK3288 device. While at that also drop the pointless check for kernel versions. --- projects/Rockchip/bootloader/canupdate.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/projects/Rockchip/bootloader/canupdate.sh b/projects/Rockchip/bootloader/canupdate.sh index 879d392cf1..77a2efc4fc 100644 --- a/projects/Rockchip/bootloader/canupdate.sh +++ b/projects/Rockchip/bootloader/canupdate.sh @@ -1,14 +1,12 @@ # SPDX-License-Identifier: GPL-2.0 # 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 +# devices have been renamed after LE9.2 +if [ "${1}" = "TinkerBoard.arm" -o "${1}" = "MiQi.arm" ]; then + if [ "${2}" = "RK3288.arm" ]; then + exit 0 + fi +fi # Allow upgrades between arm and aarch64 if [ "${1}" = "@PROJECT@.arm" -o "${1}" = "@PROJECT@.aarch64" ]; then