From b8fbadb58068b99dd89fd41a00399ed4778787e2 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Tue, 25 Feb 2020 12:56:15 +0000 Subject: [PATCH] Update generic_install.sh added wifi backport --- scripts/generic_install.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/scripts/generic_install.sh b/scripts/generic_install.sh index 2ac3361..316461f 100644 --- a/scripts/generic_install.sh +++ b/scripts/generic_install.sh @@ -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 \ No newline at end of file