Skip to content

Instantly share code, notes, and snippets.

@muokicaleb
Created September 23, 2023 16:39
Show Gist options
  • Save muokicaleb/b1bc3511c4fb2cc5afd35c79d68e3073 to your computer and use it in GitHub Desktop.
Save muokicaleb/b1bc3511c4fb2cc5afd35c79d68e3073 to your computer and use it in GitHub Desktop.
#!/bin/bash
# bash script to install broadcom drivers
if (( $EUID != 0 )); then
echo "You need to run script as root"
exit
fi
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
apt-get -y update
apt-get -y install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
modprobe wl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment