-
Notifications
You must be signed in to change notification settings - Fork 1
/
install-broadcom-wifi.sh
27 lines (22 loc) · 1.03 KB
/
install-broadcom-wifi.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root type: sudo ./installscript"
exit 1
else
clear
#Install Macbook Air Broadcom Wifi
echo "***********************************"
echo "* Installing Mackbook Air Wifi... *"
echo "***********************************"
#Install the rpmfusion repo, note only "nonfree" is required, as the Broadcom Driver is proprietry: http://rpmfusion.org/
su -c 'dnf install -y http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'
#Then install the akmods and kernel-devel packages
sudo dnf install -y akmods "kernel-devel-uname-r == $(uname -r)"
#Finally install broadcom-wl package from the rpmfusion repo, which will install kmod-wl, akmod-wl, and other dependencies.
sudo dnf install -y broadcom-wl
#Next run akmods to rebuild the kernel extension in the broadcom-wl package:
sudo akmods
echo "*******************************"
echo "* Wifi installation complete! *"
echo "*******************************"
fi