armbian-next: fix for tests of BOOTSCRIPT and BOOTCONFIG!=none

This commit is contained in:
Ricardo Pardini
2022-08-13 14:39:47 +02:00
parent 271fe3fcd0
commit 1fa825b58e

View File

@@ -176,9 +176,9 @@ function install_distribution_agnostic() {
else
echo " fdtdir ${bootpart_prefix}dtb/" >> "$SDCARD/boot/extlinux/extlinux.conf"
fi
else
else # ... not extlinux ...
if [[ -n "${BOOTSCRIPT}" ]]; then # @TODO: this used to check BOOTCONFIG not being 'none'
if [[ -n "${BOOTSCRIPT}" && "${BOOTCONFIG}" != "none" ]]; then
if [ -f "${USERPATCHES_PATH}/bootscripts/${bootscript_src}" ]; then
run_host_command_logged cp -pv "${USERPATCHES_PATH}/bootscripts/${bootscript_src}" "${SDCARD}/boot/${bootscript_dst}"
else