mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
RPi: add canupdate.sh script
Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
parent
8d2c68b09f
commit
80145c9248
@ -26,7 +26,12 @@ makeinstall_target() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
find_file_path bootloader/update.sh ${PKG_DIR}/files/update.sh && cp -PRv ${FOUND_PATH} ${INSTALL}/usr/share/bootloader
|
find_file_path bootloader/update.sh ${PKG_DIR}/files/update.sh && cp -PRv ${FOUND_PATH} ${INSTALL}/usr/share/bootloader
|
||||||
find_file_path bootloader/canupdate.sh && cp -PRv ${FOUND_PATH} ${INSTALL}/usr/share/bootloader
|
|
||||||
|
if find_file_path bootloader/canupdate.sh; then
|
||||||
|
cp -PRv ${FOUND_PATH} ${INSTALL}/usr/share/bootloader
|
||||||
|
sed -e "s/@PROJECT@/${DEVICE:-${PROJECT}}/g" \
|
||||||
|
-i ${INSTALL}/usr/share/bootloader/canupdate.sh
|
||||||
|
fi
|
||||||
|
|
||||||
find_file_path config/distroconfig.txt ${PKG_DIR}/files/distroconfig.txt && cp -PRv ${FOUND_PATH} ${INSTALL}/usr/share/bootloader
|
find_file_path config/distroconfig.txt ${PKG_DIR}/files/distroconfig.txt && cp -PRv ${FOUND_PATH} ${INSTALL}/usr/share/bootloader
|
||||||
find_file_path config/distroconfig-composite.txt ${PKG_DIR}/files/distroconfig-composite.txt && cp -PRv ${FOUND_PATH} ${INSTALL}/usr/share/bootloader
|
find_file_path config/distroconfig-composite.txt ${PKG_DIR}/files/distroconfig-composite.txt && cp -PRv ${FOUND_PATH} ${INSTALL}/usr/share/bootloader
|
||||||
|
11
projects/RPi/bootloader/canupdate.sh
Executable file
11
projects/RPi/bootloader/canupdate.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
|
# Copyright (C) 2023-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
|
# Allow upgrades between arm and aarch64
|
||||||
|
if [ "${1}" = "@PROJECT@.arm" -o "${1}" = "@PROJECT@.aarch64" ]; then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user