Skip to content

Instantly share code, notes, and snippets.

@CactiChameleon9
Forked from isDipesh/install-b43.sh
Last active February 12, 2022 15:13
Show Gist options
  • Save CactiChameleon9/22879a6bfca4789d74c46142b3d60ac3 to your computer and use it in GitHub Desktop.
Save CactiChameleon9/22879a6bfca4789d74c46142b3d60ac3 to your computer and use it in GitHub Desktop.
Install Broadcom (B43) wireless driver on fedora (tested on 35)
#!/bin/bash
#http://wireless.kernel.org/en/users/Drivers/b43
echo "please run as root"
dnf install b43-fwcutter wget
wget http://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2
tar xjf broadcom-wl-5.100.138.tar.bz2
b43-fwcutter -w /lib/firmware broadcom-wl-5.100.138/linux/wl_apsta.o
echo "b43" > /etc/modules-load.d/wifi.conf
#probably not needed
echo "blacklist brcmsmac" >> /etc/modprobe.d/blacklist
echo "
[Unit]
Description=Load Kernel Module B34 for Wifi
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/bin/bash -c \"modprobe -r b43; sleep 10; modprobe b43\"
TimeoutSec=90s
[Install]
WantedBy=multi-user.target" > /etc/systemd/system/b43wifi.service
rm broadcom-wl-5.100.138.tar.bz2
rm -r broadcom-wl-5.100.138
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment