dtb: fix leading_slash

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

@ -1430,7 +1430,7 @@ check_dtb_board () {
#/hwpack/${dtb_board}.conf #/hwpack/${dtb_board}.conf
unset leading_slash unset leading_slash
leading_slash=$(echo ${dtb_board} | grep "/") leading_slash=$(echo ${dtb_board} | grep "/" || unset leading_slash)
if [ "${leading_slash}" ] ; then if [ "${leading_slash}" ] ; then
dtb_board=$(echo "${leading_slash##*/}") dtb_board=$(echo "${leading_slash##*/}")
fi fi

Loading…
Cancel
Save