Skip to content
Browse files

Also support updating dynamic device tree files

1 parent 31615de commit d41725bf702b3ce33ce722b6d2eb219c1f20d479 @popcornmix popcornmix committed Mar 13, 2016
Showing with 4 additions and 4 deletions.
  1. +4 −4 rpi-update
View
8 rpi-update
@@ -157,12 +157,12 @@ function update_firmware {
cp "${FW_REPOLOCAL}/"*.dat "${FW_PATH}/"
if [[ ${SKIP_KERNEL} -eq 0 ]]; then
cp "${FW_REPOLOCAL}/"*.img "${FW_PATH}/"
- if [[ -n $(shopt -s nullglob; echo "${FW_REPOLOCAL}/"*.dtb) ]]; then
- cp "${FW_REPOLOCAL}/"*.dtb "${FW_PATH}/"
+ if [[ -n $(shopt -s nullglob; echo "${FW_REPOLOCAL}/"*.dtb*) ]]; then
+ cp "${FW_REPOLOCAL}/"*.dtb* "${FW_PATH}/"
fi
- if [[ -n $(shopt -s nullglob; echo "${FW_REPOLOCAL}/overlays/"*.dtb) ]]; then
+ if [[ -n $(shopt -s nullglob; echo "${FW_REPOLOCAL}/overlays/"*.dtb*) ]]; then
mkdir -p "${FW_PATH}/overlays"
- cp "${FW_REPOLOCAL}/overlays/"*.dtb "${FW_PATH}/overlays/"
+ cp "${FW_REPOLOCAL}/overlays/"*.dtb* "${FW_PATH}/overlays/"
if [[ -f "${FW_REPOLOCAL}/overlays/README" ]]; then
cp "${FW_REPOLOCAL}/overlays/README" "${FW_PATH}/overlays/"
fi

0 comments on commit d41725b

Please sign in to comment.
Something went wrong with that request. Please try again.