Skip to content

Commit

Permalink
firmware.sh: Unmount after cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Feb 24, 2024
1 parent 10cb2c4 commit 6838b0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tools/firmware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ case "$os" in
sudo modprobe brcmfmac || true
sudo modprobe -r hci_bcm4377 || true
sudo modprobe hci_bcm4377 || true
sudo rm -r $workdir/*
sudo umount $mountpoint
sudo rmdir $mountpoint
echo "Keeping a copy of the firmware and the script in the EFI partition shall allow you to set up Wi-Fi again in the future by running this script or the commands told in the macOS step in Linux only, without the macOS step. Do you want to keep a copy? (y/N)"
read input
if [[ ($input != y) && ($input != Y) ]]
Expand All @@ -108,6 +105,9 @@ case "$os" in
fi
done
fi
sudo rm -r $workdir/*
sudo umount $mountpoint
sudo rmdir $mountpoint
echo "Done!"
;;
(*)
Expand Down

0 comments on commit 6838b0d

Please sign in to comment.