mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Add omarchy-doctor
This commit is contained in:
@@ -1,5 +1,18 @@
|
||||
# Install wifi drivers for 2013-2015 MacBooks using the BCM4360 chip
|
||||
if lspci -nnv | grep -A2 "14e4:43a0" | grep -q "106b:"; then
|
||||
OMARCHY_DESCRIPTION="Apple BCM4360 WiFi Driver"
|
||||
|
||||
should_run() {
|
||||
lspci -nnv | grep -A2 "14e4:43a0" | grep -q "106b:"
|
||||
}
|
||||
|
||||
omarchy_install() {
|
||||
should_run || return 0
|
||||
|
||||
echo "Apple BCM4360 detected"
|
||||
sudo pacman -S --noconfirm --needed broadcom-wl dkms linux-headers
|
||||
fi
|
||||
}
|
||||
|
||||
omarchy_verify() {
|
||||
should_run || return 2
|
||||
|
||||
omarchy-pkg-present broadcom-wl || add_error "Broadcom wireless driver not installed"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user