Skip to content

Commit

Permalink
Firmware: Use mkdir -p
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaGarg8 authored Oct 2, 2023
1 parent d044021 commit 9743a4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/tools/firmware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,24 @@ case "$os" in
echo "Unmounting the EFI partition"
sudo diskutil unmount disk0s1
echo
echo -e "Run the following commands or run this script itself in Linux now to set up Wi-Fi :-\n\nsudo umount /dev/nvme0n1p1\nsudo mkdir /tmp/apple-wifi-efi\nsudo mount /dev/nvme0n1p1 /tmp/apple-wifi-efi\nbash /tmp/apple-wifi-efi/firmware.sh\n"
echo -e "Run the following commands or run this script itself in Linux now to set up Wi-Fi :-\n\nsudo umount /dev/nvme0n1p1\nsudo mkdir -p /tmp/apple-wifi-efi\nsudo mount /dev/nvme0n1p1 /tmp/apple-wifi-efi\nbash /tmp/apple-wifi-efi/firmware.sh\n"
;;
(Linux)
echo "Detected Linux"
echo "Re-mounting the EFI partition"
if [[ ${1-default} = -v ]]
then
sudo umount -v /dev/nvme0n1p1 || true
sudo mkdir -v /tmp/apple-wifi-efi || true
sudo mkdir -p -v /tmp/apple-wifi-efi || true
sudo mount -v /dev/nvme0n1p1 /tmp/apple-wifi-efi || true
else
sudo umount /dev/nvme0n1p1 2>/dev/null || true
sudo mkdir /tmp/apple-wifi-efi 2>/dev/null || true
sudo mkdir -p /tmp/apple-wifi-efi 2>/dev/null || true
sudo mount /dev/nvme0n1p1 /tmp/apple-wifi-efi 2>/dev/null || true
fi
mountpoint=$(findmnt -n -o TARGET /dev/nvme0n1p1)
echo "Getting Wi-Fi and Bluetooth firmware"
sudo mkdir /tmp/apple-wifi-fw
sudo mkdir -p /tmp/apple-wifi-fw
cd /tmp/apple-wifi-fw
if [[ ${1-default} = -v ]]
then
Expand Down

0 comments on commit 9743a4d

Please sign in to comment.