From fa59e6616bbaed87e7cd9b8aab90569f98d70c86 Mon Sep 17 00:00:00 2001 From: CvH Date: Sun, 5 Sep 2021 01:44:24 +0200 Subject: [PATCH] Generic: allow updating from different Generic builds --- .../filesystem/usr/share/bootloader/canupdate.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/projects/Generic/filesystem/usr/share/bootloader/canupdate.sh b/projects/Generic/filesystem/usr/share/bootloader/canupdate.sh index 0e4f1fac42..cc25de5bfe 100644 --- a/projects/Generic/filesystem/usr/share/bootloader/canupdate.sh +++ b/projects/Generic/filesystem/usr/share/bootloader/canupdate.sh @@ -1,2 +1,9 @@ -# Allow upgrades from Virtual to Generic -[ "$1" = "Virtual.x86_64" ] && exit 0 || exit 1 +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv) + +# Allow upgrades between different Generic builds +if [ "$1" = "Virtual.x86_64" -o "$1" = "Generic-legacy.x86_64" -o "$1" = "Generic.x86_64" ]; then + exit 0 +else + exit 1 +fi