Created
September 18, 2025 03:31
-
-
Save felipealfonsog/9ef1c52b047c707d3b5f91409e2632f0 to your computer and use it in GitHub Desktop.
Fix broadcom driver en Arch con broadcom-wl-dkms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "ð§ Verificando conexión a Internet..." | |
| if ping -c 1 archlinux.org &>/dev/null; then | |
| echo "â Conexión detectada." | |
| else | |
| echo "â No hay conexión a Internet. Conecta un cable Ethernet y vuelve a intentarlo." | |
| exit 1 | |
| fi | |
| echo "ð¦ Instalando dkms y headers del kernel actual..." | |
| KERNEL=$(uname -r) | |
| if [[ "$KERNEL" == *lts* ]]; then | |
| sudo pacman -S --needed dkms linux-lts-headers | |
| else | |
| sudo pacman -S --needed dkms linux-headers | |
| fi | |
| echo "ð§¹ Eliminando broadcom-wl anterior si existe..." | |
| sudo pacman -Rns --noconfirm broadcom-wl | |
| echo "𧰠Verificando si yay o paru está disponible..." | |
| if command -v yay &>/dev/null; then | |
| AUR_HELPER="yay" | |
| elif command -v paru &>/dev/null; then | |
| AUR_HELPER="paru" | |
| else | |
| echo "â No se encontró 'yay' ni 'paru'. Instala uno primero para continuar." | |
| echo "Puedes instalar yay asÃ:" | |
| echo " git clone https://aur.archlinux.org/yay.git" | |
| echo " cd yay" | |
| echo " makepkg -si" | |
| exit 1 | |
| fi | |
| echo "ð¥ Instalando broadcom-wl-dkms desde AUR usando $AUR_HELPER..." | |
| $AUR_HELPER -S --noconfirm broadcom-wl-dkms | |
| echo "ð Cargando módulo wl..." | |
| sudo modprobe -r wl 2>/dev/null | |
| sudo modprobe wl | |
| echo "â Proceso terminado. Puedes verificar con 'nmcli device' o reiniciar el sistema." | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment