rpi-update: Cope with incorrect Pi 5 kernel names

The kernel autobuilds have been building kernel2712.img, not kernel_2712.img. Handle the incorrect name as well.
This commit is contained in:
Phil Elwell
2023-10-13 11:21:53 +01:00
committed by GitHub
parent 09d29d17db
commit cc8113fbe8

View File

@@ -408,6 +408,7 @@ function update_firmware {
fi
if [[ ${WANT_PI5} -eq 1 ]]; then
[[ -e "${FW_REPOLOCAL}/"kernel_2712.img ]] && cp "${FW_REPOLOCAL}/"kernel_2712.img "${FW_PATH}/"
[[ -e "${FW_REPOLOCAL}/"kernel2712.img ]] && cp "${FW_REPOLOCAL}/"kernel2712.img "${FW_PATH}/"kernel_2712.img
fi
if [[ -n $(shopt -s nullglob; echo "${FW_REPOLOCAL}/"*.dtb*) ]]; then
cp "${FW_REPOLOCAL}/"*.dtb* "${FW_PATH}/"