Update generic_install.sh

added wifi backport
This commit is contained in:
Martin Donnelly 2020-02-25 12:56:15 +00:00
parent 47ee9d8ef0
commit b8fbadb580

View File

@ -14,6 +14,7 @@ DATABASE=no
NGINX=no
INSTALL=no
INSTALLAMD=no
INSTALLWIFI=no
DONVM=no
RED=`tput setaf 1`
@ -58,6 +59,11 @@ case $i in
INSTALLAMD=YES
shift # past argument=value
;;
--install-wifi)
UPDATE=YES
INSTALLWIFI=YES
shift
;;
--default)
DEFAULT=YES
shift # past argument with no value
@ -197,4 +203,15 @@ if [[ $INSTALLAMD = "YES" ]]; then
echo $sudoPW | sudo -S apt-get install mesa-vdpau-drivers
fi
if [[ $INSTALLWIFI = "YES"]]; then
fancy_echo "${YELLOW}Installing iwlwifi...${RESET}"
# from https://askubuntu.com/questions/1066105/how-to-install-amd-graphic-drivers-on-ubuntu-18-04
echo $sudoPW | sudo -S add-apt-repository ppa:canonical-hwe-team/backport-iwlwifi
echo $sudoPW | sudo -S apt-get update
echo $sudoPW | sudo -S sudo apt install backport-iwlwifi-dkms
fi