From 1bb2aba9edc27c9045511e01bb3fc113cae2f880 Mon Sep 17 00:00:00 2001 From: sharpenedblade Date: Sun, 18 Feb 2024 21:05:29 -0800 Subject: [PATCH] Fix firmware script --- docs/tools/firmware.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/tools/firmware.sh b/docs/tools/firmware.sh index 435f4cb04..f8c8935dc 100644 --- a/docs/tools/firmware.sh +++ b/docs/tools/firmware.sh @@ -25,10 +25,10 @@ case "$os" in echo "Getting Wi-Fi and Bluetooth firmware" if [[ ${1-default} = -v ]] then - tar -cvf "/Volumes/${EFILABEL}/firmware.tar" /usr/share/firmware/* + tar -cvf "/Volumes/${EFILABEL}/firmware.tar" -C /usr/share/firmware/ . gzip --best "/Volumes/${EFILABEL}/firmware.tar" else - tar -cf "/Volumes/${EFILABEL}/firmware.tar" /usr/share/firmware/* + tar -cf "/Volumes/${EFILABEL}/firmware.tar" -C /usr/share/firmware/ . gzip --best "/Volumes/${EFILABEL}/firmware.tar" fi if [[ (${identifier} = iMac19,1) || (${identifier} = iMac19,2) || (${identifier} = iMacPro1,1) ]] @@ -105,6 +105,7 @@ case "$os" in rm -r $workdir/* rmdir $mountpoint echo "Reloading Wi-Fi drivers" + modprobe -r brcmfmac_wcc modprobe -r brcmfmac modprobe brcmfmac modprobe -r hci_bcm4377