From 94593871e73a806f10299e16524deba10190a85a Mon Sep 17 00:00:00 2001 From: Gabriel Dutra Date: Mon, 20 Nov 2017 21:50:28 -0200 Subject: [PATCH] Update install.sh --- install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 1414b55..f745dda 100644 --- a/install.sh +++ b/install.sh @@ -1,5 +1,4 @@ #!/bin/bash - function vefificaRoot(){ if [ "$(id -u)" != "0" ]; then 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 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 chmod 755 /usr/bin/rpi-source rpi-source --skip-gcc @@ -40,8 +42,7 @@ function configure(){ make sudo cp 8812au.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless - sudo depmod -a - sudo modprobe 8812au + sudo depmod -a && sudo modprobe 8812au echo " ***Success***