dtb: now accepts: ./hwpack/${dtb_board}.conf, hwpack/${dtb_board}.conf, with ${dtb_board}.conf and ${dtb_board}

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/22/head
Robert Nelson 12 years ago
parent b1a2b2450a
commit bb0cd5150d

@ -1438,6 +1438,15 @@ function check_mmc {
check_dtb_board () { check_dtb_board () {
invalid_dtb=1 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}') dtb_board=$(echo ${dtb_board} | awk -F ".conf" '{print $1}')
if [ -f "${DIR}"/hwpack/${dtb_board}.conf ] ; then if [ -f "${DIR}"/hwpack/${dtb_board}.conf ] ; then
source "${DIR}"/hwpack/${dtb_board}.conf source "${DIR}"/hwpack/${dtb_board}.conf

Loading…
Cancel
Save