#!/bin/sh kernver=$(cat /usr/share/kernel/rpi2/kernel.release) cd /usr/lib/linux-${kernver}/ find . -type f -regex ".*\.dtbo\?$" -exec install -Dm644 {} /boot/{} \;