From c91bed4dbb8a401ca087476c5723aedb487cdd45 Mon Sep 17 00:00:00 2001 From: Moowool Date: Fri, 10 Dec 2021 18:15:03 -0500 Subject: [PATCH 1/3] Faster compile time. Make uses all cores --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 55ec47c..4f10332 100755 --- a/install.sh +++ b/install.sh @@ -5,7 +5,7 @@ if [ "$(id -u)" != "0" ]; then exit 1 fi -make && +make -j$(nproc) && cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless && depmod && echo " From a3b8329689b307384a9a7a677feec71c79cb0ccd Mon Sep 17 00:00:00 2001 From: Moowool Date: Fri, 10 Dec 2021 19:11:33 -0500 Subject: [PATCH 2/3] Installed the kernel module correctly --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index 4f10332..9653889 100755 --- a/install.sh +++ b/install.sh @@ -5,7 +5,11 @@ if [ "$(id -u)" != "0" ]; then exit 1 fi +DRIV_DIR=/lib/modules/$(uname -r)/kernel/drivers/net/wireless/realtek/rtlwifi/rtl8812au + make -j$(nproc) && +mkdir -p $DRIV_DIR && +xz -c 8812au.ko > $DRIV_DIR/rtl8812au.ko.xz && cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless && depmod && echo " From 15465d52db7c9d90d207a74c45b0dbb1e7bb7a13 Mon Sep 17 00:00:00 2001 From: Moowool Date: Fri, 10 Dec 2021 19:13:20 -0500 Subject: [PATCH 3/3] Replaced insmod, which doesn't load depedencies, with modprobe, which does --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 9653889..65dd6a2 100755 --- a/install.sh +++ b/install.sh @@ -20,7 +20,7 @@ echo " while true; do read -p "Do you wish to activate the module now? (y/n)" yn case $yn in - [Yy]* ) insmod 8812au.ko && echo "***Module activated***" && break;; + [Yy]* ) modprobe rtl8812au && echo "***Module activated***" && break;; [Nn]* ) exit;; * ) echo "Please answer yes or no.";; esac