Last active
July 15, 2024 13:31
-
-
Save C7YPT0N1C/a8f1502bd695cf046aadf66285a1d629 to your computer and use it in GitHub Desktop.
TP-Link WiFi Adaptor Driver Install Script
This file contains hidden or 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 | |
sudo apt update -y | |
sudo apt install dkms git build-essential libelf-dev linux-headers-$(uname -r) -y | |
if [ -d /home/$USER/rtl8812au/ ] | |
then | |
echo "Directory /home/$USER/rtl8812au/ exists. Deleting. Please say yes to any confirmations that may appear." | |
rm -drf /home/%USER/rtl8812au | |
else | |
echo "Directory /home/$USER/rtl8812au/ does not exist. Deletion of directory not necessary." | |
fi | |
sudo apt install dkms git build-essential libelf-dev linux-headers-$(uname -r) | |
cd /home/$USER/ | |
git clone https://github.com/aircrack-ng/rtl8812au.git | |
cd rtl8812au/ | |
echo "- Ready to install driver." | |
read -p "- Press enter to continue" | |
sudo make dkms_install | |
echo "- Please remove the TP-Link adapter and plug it again. The LED on the adaptor should start to blink." | |
read -p "- Press enter to continue" | |
read -p "- Confiring installation, output should be '8812au, 5.6.4.2_35491.20191025, [kernel-version], x86_64: installed'. Press enter to continue" | |
sudo dkms status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment