From 648346734cd360f71f71c24841fef71b4249632c Mon Sep 17 00:00:00 2001 From: leeboby Date: Fri, 20 Nov 2020 18:24:43 +0800 Subject: [PATCH] Only the current branch needs dt overlays --- scripts/distributions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/distributions.sh b/scripts/distributions.sh index ccab225..6c39480 100755 --- a/scripts/distributions.sh +++ b/scripts/distributions.sh @@ -191,10 +191,10 @@ install_common() fi fi - [[ -n $OVERLAY_PREFIX && -f $SDCARD/boot/orangepiEnv.txt ]] && \ + [[ -n $OVERLAY_PREFIX && -f $SDCARD/boot/orangepiEnv.txt && $BRANCH == current ]] && \ echo "overlay_prefix=$OVERLAY_PREFIX" >> "${SDCARD}"/boot/orangepiEnv.txt - [[ -n $DEFAULT_OVERLAYS && -f $SDCARD/boot/orangepiEnv.txt ]] && \ + [[ -n $DEFAULT_OVERLAYS && -f $SDCARD/boot/orangepiEnv.txt && $BRANCH == current ]] && \ echo "overlays=${DEFAULT_OVERLAYS//,/ }" >> "${SDCARD}"/boot/orangepiEnv.txt [[ -n $BOOT_FDT_FILE && -f $SDCARD/boot/orangepiEnv.txt ]] && \