Сборка драйвера rtl8821

Добро пожаловать!

Moderator: Blaze

Post Reply
Flexdj
Black ninja
Black ninja
Posts: 62
Joined: 10 Mar 2017, 13:05
Distribution: Porteus
Location: ростов

Сборка драйвера rtl8821

Post#1 by Flexdj » 16 Feb 2021, 19:40

Code: Select all

#!/bin/bash
echo Спасибо Blaze использовал ваш пример 
cd /root
git clone https://github.com/brektrou/rtl8821cu
cd rtl8821cu
make && make install
VER=$(curl -s https://github.com/brektrou/rtl8821cu |grep commit/|head -1|cut -d / -f5|cut -c1-7)
mkdir -p /root/rtl8821CU-$VER/lib/modules/`uname -r`/kernel/drivers/net/wireless/realtek/rtl8821cu
install -p -m 644 8821cu.ko /root/rtl8821CU-$VER/lib/modules/`uname -r`/kernel/drivers/net/wireless/realtek/rtl8821cu
cd ..
dir2xzm /root/rtl8821CU-$VER /root/rtl8821cu-$VER-`uname -r`-$(arch).xzm
mv /root/rtl8821cu-$VER-`uname -r`-$(arch).xzm $MODDIR/rtl8821cu-$VER-`uname -r`-$(arch).xzm
activate $MODDIR/rtl8821cu-$VER-`uname -r`-$(arch).xzm
modprobe 8821cu



Post Reply