criando automatizador de instalacao do driver

This commit is contained in:
gmdutra 2017-10-19 11:32:16 -02:00
parent d1282aed34
commit 4a643b502f

View File

@ -5,6 +5,23 @@ if [ "$(id -u)" != "0" ]; then
exit 1
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 &&
cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless &&
depmod &&