From 3f9782d1c8f4bc82f1064d21f353fc56b28fd7ef Mon Sep 17 00:00:00 2001 From: chewitt Date: Wed, 24 Apr 2019 03:54:21 +0000 Subject: [PATCH] busybox: fix dtfile path error --- packages/sysutils/busybox/scripts/dtfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sysutils/busybox/scripts/dtfile b/packages/sysutils/busybox/scripts/dtfile index e9a089c8f5..04ca371944 100755 --- a/packages/sysutils/busybox/scripts/dtfile +++ b/packages/sysutils/busybox/scripts/dtfile @@ -7,9 +7,9 @@ COMPATIBLE=$(cat /proc/device-tree/compatible 2>/dev/null | tr -d '\000' | sed - if [ -n "$COMPATIBLE" ]; then if [ -e /flash/extlinux/extlinux.conf ]; then - DTFILE=$(grep FDT extlinux.conf | sed 's, *FDT /dtb/,,g') + DTFILE=$(grep FDT /flash/extlinux/extlinux.conf | sed 's, *FDT /dtb/,,g') elif [ -e /flash/boot.ini ]; then - DTFILE=$(grep -m 1 dtb_name boot.ini | cut -d \" -f2 | sed 's,/dtb/,,g') + DTFILE=$(grep -m 1 dtb_name /flash/boot.ini | cut -d \" -f2 | sed 's,/dtb/,,g') elif [ -e /flash/uEnv.ini ]; then DTFILE=$(grep dtb_name /flash/uEnv.ini | sed 's,dtb_name=/dtb/,,g') else