From 607915a5d1338cf2118b75b4a704abb0d3bf68c6 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Sun, 21 Sep 2025 18:12:21 -0400 Subject: [PATCH] Combine ifs --- install/config/hardware/fix-apple-bcm43xx.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/install/config/hardware/fix-apple-bcm43xx.sh b/install/config/hardware/fix-apple-bcm43xx.sh index 1a479991..1311a491 100644 --- a/install/config/hardware/fix-apple-bcm43xx.sh +++ b/install/config/hardware/fix-apple-bcm43xx.sh @@ -2,13 +2,10 @@ # - BCM4360 (2013–2015) # - BCM4331 (2012, early 2013) -# Grab the PCI ID string once pci_info=$(lspci -nnv) -if echo "$pci_info" | grep -q "14e4:43a0" && echo "$pci_info" | grep -q "106b:"; then - echo "Apple BCM4360 detected" - sudo pacman -S --noconfirm --needed broadcom-wl dkms linux-headers -elif echo "$pci_info" | grep -q "14e4:4331" && echo "$pci_info" | grep -q "106b:"; then - echo "Apple BCM4331 detected" +if echo "$pci_info" | grep -q "106b:" && + (echo "$pci_info" | grep -q "14e4:43a0" || echo "$pci_info" | grep -q "14e4:4331"); then + echo "Apple BCM4360 / BCM4331 detected" sudo pacman -S --noconfirm --needed broadcom-wl dkms linux-headers fi