mirror of
https://github.com/gnab/rtl8812au
synced 2025-01-06 14:16:19 +00:00
commit
3c1043e846
@ -5,7 +5,11 @@ if [ "$(id -u)" != "0" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make &&
|
||||
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 "
|
||||
@ -16,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
|
||||
|
Loading…
Reference in New Issue
Block a user