Files
Arch-R/projects/Amlogic/bootloader/canupdate.sh

21 lines
450 B
Bash
Raw Normal View History

2019-05-21 01:43:22 +02:00
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
# detect legacy kernel installs and abort to prevent upgrades
case $(uname -r) in
3.14*|4.9*)
echo "Updates from Amlogic vendor kernels are not supported!"
sleep 10
exit 1
;;
esac
2019-05-21 01:43:22 +02:00
2023-09-04 16:42:40 +00:00
# Allow upgrades between arm and aarch64
if [ "${1}" = "@PROJECT@.arm" -o "${1}" = "@PROJECT@.aarch64" ]; then
2019-05-21 01:43:22 +02:00
exit 0
else
exit 1
fi