Last active
September 5, 2015 05:49
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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