mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-20 21:13:38 +08:00
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:
@@ -408,6 +408,7 @@ function update_firmware {
|
|||||||
fi
|
fi
|
||||||
if [[ ${WANT_PI5} -eq 1 ]]; then
|
if [[ ${WANT_PI5} -eq 1 ]]; then
|
||||||
[[ -e "${FW_REPOLOCAL}/"kernel_2712.img ]] && cp "${FW_REPOLOCAL}/"kernel_2712.img "${FW_PATH}/"
|
[[ -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
|
fi
|
||||||
if [[ -n $(shopt -s nullglob; echo "${FW_REPOLOCAL}/"*.dtb*) ]]; then
|
if [[ -n $(shopt -s nullglob; echo "${FW_REPOLOCAL}/"*.dtb*) ]]; then
|
||||||
cp "${FW_REPOLOCAL}/"*.dtb* "${FW_PATH}/"
|
cp "${FW_REPOLOCAL}/"*.dtb* "${FW_PATH}/"
|
||||||
|
|||||||
Reference in New Issue
Block a user