Added installation of NVIDIA grafic drivers if necessary

This commit is contained in:
Kevin Veen-Birkenbach 2019-11-21 15:16:46 +01:00
parent aa6c2afb23
commit d5fed8e997

View File

@ -43,6 +43,10 @@ if [ ! -f "$ssh_key_path" ]; then
ssh-keygen -t rsa -b 4096 -C "$USER@$HOSTNAME"
fi
fi
if [[ "$(sudo lshw -C display)" == *"NVIDIA"* ]]; then
echo "Install NVIDIA drivers..."
sudo mhwd -a pci nonfree 0300
fi
echo "Synchronizing web tools..."
sudo pacman --needed -S chromium firefox firefox-ublock-origin firefox-extension-https-everywhere firefox-dark-reader
echo "Synchronizing office tools..."