Skip to content

Instantly share code, notes, and snippets.

@westonal
Last active August 20, 2017 10:19
Show Gist options
  • Save westonal/e405e8947761defbd72f6d1d3519bcfa to your computer and use it in GitHub Desktop.
Save westonal/e405e8947761defbd72f6d1d3519bcfa to your computer and use it in GitHub Desktop.
#!/bin/bash
#stop script on first error
set -e
#echo on
set -x
#Pre-requisits
sudo apt-get update
sudo apt-get -y install raspberrypi-kernel-headers linux-headers-rpi git build-essential dkms #linux-headers-generic
#Clone this repository (fork of https://github.com/pvaret/rtl8192cu-fixes.git):
git clone https://github.com/westonal/rtl8192cu-fixes.git
#Set it up as a DKMS module:
sudo dkms add ./rtl8192cu-fixes
#Build and install it:
sudo dkms install 8192cu/1.10
#Refresh the module list:
sudo depmod -a
#Ensure the native (and broken) kernel driver is blacklisted:
sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/
@westonal
Copy link
Author

westonal commented Aug 20, 2017

wget https://goo.gl/ARXUo8 -O 8192fix.sh && chmod +x 8192fix.sh && sudo ./8192fix.sh && sudo reboot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment