Skip to content

Commit

Permalink
Fix firmware script
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Feb 19, 2024
1 parent 9a2832b commit 1bb2aba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/tools/firmware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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) ]]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1bb2aba

Please sign in to comment.