Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- update_system() {
- sudo apt update; sudo apt upgrade
- }
- install_prerequisites() {
- sudo apt install linux-headers-$(uname -r) build-essential dkms
- }
- # Função para remover drivers antigos
- remove_old_drivers() {
- sudo apt purge bcmwl-kernel-source
- }
- # Baixar e instalar o firmware Broadcom
- install_broadcom_firmware() {
- wget http://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2
- wget http://downloads.openwrt.org/sources/broadcom-wl-5.10.56.27.3_mipsel.tar.bz2
- tar -xf broadcom-wl-5.100.138.tar.bz2
- tar -xf broadcom-wl-5.10.56.27.3_mipsel.tar.bz2
- sudo b43-fwcutter -w /lib/firmware broadcom-wl-5.100.138/linux/wl_apsta.o
- }
- load_b43_driver() {
- sudo modprobe b43
- }
- check_driver_status() {
- dmesg | grep b43
- }
- main() {
- update_system
- install_prerequisites
- remove_old_drivers
- install_broadcom_firmware
- load_b43_driver
- check_driver_status
- }
- main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement