Skip to content

Instantly share code, notes, and snippets.

@amites
Last active September 5, 2015 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amites/6ef8db7580a90b1eb0c5 to your computer and use it in GitHub Desktop.
Save amites/6ef8db7580a90b1eb0c5 to your computer and use it in GitHub Desktop.
Bash script to setup a TL-WN722NC as an available wifi dongle onto a bbb.
#!/bin/bash
# install linux headers
wget https://raw.github.com/gkaindl/beaglebone-ubuntu-scripts/master/bb-get-rcn-kernel-source.sh
chmod +x bb-get-rcn-kernel-source.sh
sudo ./bb-get-rcn-kernel-source.sh
# download backports drivers
wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.16/backports-3.16-1.tar.gz
tar xvfz backports-3.16-1.tar.gz
cd backports-3.16-1
# install drivers
sudo make clean
sudo make defconfig-ath9k
sudo make
sudo make install
# configure drivers
echo "ath9k" | sudo tee -a /etc/modules
echo "ath9k_htc" | sudo tee -a /etc/modules
@invisibleinsect
Copy link

Hey, I really appreciate what you've posted as it the cleanest script I've seen (and I've tried a lot!). I'm using this with my kali linux and am not having any success with all the 'make' commands when I go to install drivers....
root@kali:~/backports-3.16-1# sudo make clean
Generating local configuration database from kernel ...Makefile:10: *** mixed implicit and normal rules: deprecated syntax
Kernel version parse failed!
Makefile:40: recipe for target 'clean' failed
make: *** [clean] Error 1

I'd appreciate any thoughts on this, thanks

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