From c243cfffa0aba1dd2a7919cbdc4d7255b8c620cf Mon Sep 17 00:00:00 2001 From: sydarn Date: Tue, 11 Jun 2024 19:50:44 +0200 Subject: [PATCH] rockchip: install new dtbs also on update --- projects/Rockchip/bootloader/update.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/projects/Rockchip/bootloader/update.sh b/projects/Rockchip/bootloader/update.sh index 6a2583095..801c511bf 100755 --- a/projects/Rockchip/bootloader/update.sh +++ b/projects/Rockchip/bootloader/update.sh @@ -19,11 +19,14 @@ fi # mount $BOOT_ROOT rw mount -o remount,rw $BOOT_ROOT -for all_dtb in $BOOT_ROOT/*.dtb; do - dtb=$(basename $all_dtb) - if [ -f $SYSTEM_ROOT/usr/share/bootloader/$dtb ]; then - echo "Updating $dtb..." - cp -p $SYSTEM_ROOT/usr/share/bootloader/$dtb $BOOT_ROOT +for dtb in $SYSTEM_ROOT/usr/share/bootloader/*.dtb; do + dtb_base=$(basename $dtb) + if [ -f $BOOT_ROOT/$dtb_base ]; then + echo "Updating $dtb_base..." + cp -p $dtb $BOOT_ROOT + else + echo "Installing $dtb_base..." + cp -p $dtb $BOOT_ROOT fi done