mirror of
https://github.com/gnab/rtl8812au
synced 2025-01-08 17:46:23 +00:00
Update install.sh
This commit is contained in:
parent
b21b8e9669
commit
94593871e7
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function vefificaRoot(){
|
function vefificaRoot(){
|
||||||
if [ "$(id -u)" != "0" ]; then
|
if [ "$(id -u)" != "0" ]; then
|
||||||
echo "This script must be run as root" 1>&2
|
echo "This script must be run as root" 1>&2
|
||||||
@ -25,8 +24,11 @@ function configure(){
|
|||||||
wget -O Module.symvers https://raw.githubusercontent.com/raspberrypi/firmware/master/extra/Module7.symvers
|
wget -O Module.symvers https://raw.githubusercontent.com/raspberrypi/firmware/master/extra/Module7.symvers
|
||||||
KERNEL=kernel7
|
KERNEL=kernel7
|
||||||
|
|
||||||
make bcm2709_defconfig && make prepare && make modules_prepare
|
#make bcm2709_defconfig && make prepare && make modules_prepare
|
||||||
|
|
||||||
|
for mak in bcm2709 prepare modules_prepare; do
|
||||||
|
make $mak
|
||||||
|
|
||||||
sudo wget "https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source" -O /usr/bin/rpi-source
|
sudo wget "https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source" -O /usr/bin/rpi-source
|
||||||
sudo chmod 755 /usr/bin/rpi-source
|
sudo chmod 755 /usr/bin/rpi-source
|
||||||
rpi-source --skip-gcc
|
rpi-source --skip-gcc
|
||||||
@ -40,8 +42,7 @@ function configure(){
|
|||||||
make
|
make
|
||||||
|
|
||||||
sudo cp 8812au.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless
|
sudo cp 8812au.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless
|
||||||
sudo depmod -a
|
sudo depmod -a && sudo modprobe 8812au
|
||||||
sudo modprobe 8812au
|
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
***Success***
|
***Success***
|
||||||
|
Loading…
Reference in New Issue
Block a user