mirror of
https://github.com/gnab/rtl8812au
synced 2025-01-10 08:06:07 +00:00
criando automatizador de instalacao do driver
This commit is contained in:
parent
d1282aed34
commit
4a643b502f
17
install.sh
17
install.sh
@ -5,6 +5,23 @@ if [ "$(id -u)" != "0" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
apt install build-essential bc git wget
|
||||||
|
|
||||||
|
cd /usr/src
|
||||||
|
|
||||||
|
git clone --depth 1 https://github.com/raspberrypi/linux.git
|
||||||
|
|
||||||
|
ln -s linux $(uname -r)
|
||||||
|
ln -s /usr/src/linux /lib/modules/$(uname -r)/build
|
||||||
|
cd linux
|
||||||
|
|
||||||
|
wget -O Module.symvers https://raw.githubusercontent.com/raspberrypi/firmware/master/extra/Module7.symvers
|
||||||
|
KERNEL=kernel7
|
||||||
|
|
||||||
|
make bcm2709_defconfig
|
||||||
|
make prepare
|
||||||
|
make modules_prepare
|
||||||
|
|
||||||
make &&
|
make &&
|
||||||
cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless &&
|
cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless &&
|
||||||
depmod &&
|
depmod &&
|
||||||
|
Loading…
Reference in New Issue
Block a user