From 6bce899e6b2c58fe2931bed9e00ad4c9c83044db Mon Sep 17 00:00:00 2001 From: zador-blood-stained Date: Fri, 4 Mar 2016 13:30:15 +0300 Subject: [PATCH] Oops... --- fel-load.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fel-load.sh b/fel-load.sh index e69a1cf128..c69fb6edfc 100644 --- a/fel-load.sh +++ b/fel-load.sh @@ -33,7 +33,12 @@ fel_prepare_target() echo > $FEL_ROOTFS/etc/fstab if [[ -z $FEL_DTB_FILE ]]; then if [[ $BRANCH == default ]]; then - FEL_DTB_FILE=boot/script.bin + # script.bin is either regular file or absolute symlink + if [[ -L $FEL_ROOTFS/boot/script.bin ]]; then + FEL_DTB_FILE=boot/bin/$(basename $(readlink $FEL_ROOTFS/boot/script.bin)) + else + FEL_DTB_FILE=boot/script.bin + fi else FEL_DTB_FILE=boot/dtb/$(grep CONFIG_DEFAULT_DEVICE_TREE $SOURCES/$BOOTSOURCEDIR/.config | cut -d '"' -f2).dtb fi