From a2bb6ce9893e0d8ca3f7b88a49ec138982584acd Mon Sep 17 00:00:00 2001 From: Dom Cobley Date: Tue, 4 Jan 2022 15:35:18 +0000 Subject: [PATCH] rpi-update: More specific match on deleting firmware elf files A user may have a custom start_file= entry and we should avoid deleting that if it has a custom name --- rpi-update | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpi-update b/rpi-update index cd484db..552fbe7 100755 --- a/rpi-update +++ b/rpi-update @@ -331,11 +331,11 @@ function check_partition { function update_firmware { echo " *** Updating firmware" - rm -rf "${FW_PATH}/"*.elf + rm -rf "${FW_PATH}/"start*.elf rm -rf "${FW_PATH}/"bootcode.bin if [[ ${WANT_PI4} -eq 1 ]]; then - cp "${FW_REPOLOCAL}/"*.elf "${FW_PATH}/" - cp "${FW_REPOLOCAL}/"*.dat "${FW_PATH}/" + cp "${FW_REPOLOCAL}/"start*.elf "${FW_PATH}/" + cp "${FW_REPOLOCAL}/"fixup*.dat "${FW_PATH}/" else cp "${FW_REPOLOCAL}/"start{,[^4]*}.elf "${FW_PATH}/" cp "${FW_REPOLOCAL}/"fixup{,[^4]*}.dat "${FW_PATH}/"