From bb0cd5150dce1e317b486bb51870e5f39200e6b5 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Wed, 10 Apr 2013 16:54:59 -0500 Subject: [PATCH] dtb: now accepts: ./hwpack/${dtb_board}.conf, hwpack/${dtb_board}.conf, with ${dtb_board}.conf and ${dtb_board} Signed-off-by: Robert Nelson --- mk_mmc.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mk_mmc.sh b/mk_mmc.sh index db8dc00..00c380f 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1438,6 +1438,15 @@ function check_mmc { check_dtb_board () { invalid_dtb=1 + + #/hwpack/${dtb_board}.conf + unset leading_slash + leading_slash=$(echo ${dtb_board} | grep "/") + if [ "${leading_slash}" ] ; then + dtb_board=$(echo "${leading_slash##*/}") + fi + + #${dtb_board}.conf dtb_board=$(echo ${dtb_board} | awk -F ".conf" '{print $1}') if [ -f "${DIR}"/hwpack/${dtb_board}.conf ] ; then source "${DIR}"/hwpack/${dtb_board}.conf