#/usr/bin/env bash# Install some pacakages we'll need to compile the driver below.sudodnfinstallgcckernel-devel-y# Create working dir for Broadcom driver files and patches.mkdirhybrid_wl_f23# Change to working dir.cdhybrid_wl_f23if [ 'x86_64'==`uname-m` ]; then# 64-bit driver files. FILE='hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz'else# 32-bit driver files. FILE='hybrid-v35-nodebug-pcoem-6_30_223_271.tar.gz'fi# Download Broadcom Linux Wi-Fi driver.wgethttp://www.broadcom.com/docs/linux_sta/$FILE# Extract driver files.tarzxvf $FILE# Compile driver.makeclean&&make# Install driver.sudomakeinstall# Update available drivers.sudodepmod-a# Unload conflicting drivers.sudormmodb43ssbbcma# Load the driver.sudomodprobewl# Blacklist conflicting drivers.printf'blacklist b43\nblacklist ssb\nblacklist bcma\n'|sudotee/etc/modprobe.d/wl.conf# Load driver automatically at boot time.echo'wl'|sudotee/etc/modules-load.d/wl.conf# Connect to a Wi-Fi network via NetworkManager...