mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Combine ifs
This commit is contained in:
@@ -2,13 +2,10 @@
|
|||||||
# - BCM4360 (2013–2015)
|
# - BCM4360 (2013–2015)
|
||||||
# - BCM4331 (2012, early 2013)
|
# - BCM4331 (2012, early 2013)
|
||||||
|
|
||||||
# Grab the PCI ID string once
|
|
||||||
pci_info=$(lspci -nnv)
|
pci_info=$(lspci -nnv)
|
||||||
|
|
||||||
if echo "$pci_info" | grep -q "14e4:43a0" && echo "$pci_info" | grep -q "106b:"; then
|
if echo "$pci_info" | grep -q "106b:" &&
|
||||||
echo "Apple BCM4360 detected"
|
(echo "$pci_info" | grep -q "14e4:43a0" || echo "$pci_info" | grep -q "14e4:4331"); then
|
||||||
sudo pacman -S --noconfirm --needed broadcom-wl dkms linux-headers
|
echo "Apple BCM4360 / BCM4331 detected"
|
||||||
elif echo "$pci_info" | grep -q "14e4:4331" && echo "$pci_info" | grep -q "106b:"; then
|
|
||||||
echo "Apple BCM4331 detected"
|
|
||||||
sudo pacman -S --noconfirm --needed broadcom-wl dkms linux-headers
|
sudo pacman -S --noconfirm --needed broadcom-wl dkms linux-headers
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user