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