mirror of
https://github.com/gnab/rtl8812au
synced 2025-01-24 02:05:30 +00:00
melhorando o script
This commit is contained in:
parent
29fff40b39
commit
b21b8e9669
16
install.sh
16
install.sh
@ -1,14 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
function vefificaRoot(){
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo "This script must be run as root" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
sudo apt install build-essential bc git wget
|
||||
function installDep(){
|
||||
for dep in build-essential bc git wget; do
|
||||
sudo apt install $dep
|
||||
done
|
||||
}
|
||||
|
||||
function configure(){
|
||||
|
||||
cd /usr/src
|
||||
|
||||
git clone --depth 1 https://github.com/raspberrypi/linux.git
|
||||
|
||||
ln -s linux $(uname -r)
|
||||
@ -49,3 +56,8 @@ while true; do
|
||||
* ) echo "Please answer yes or no.";;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
verificaRoot
|
||||
installDep
|
||||
configure
|
||||
|
Loading…
Reference in New Issue
Block a user