Added installation of NVIDIA grafic drivers if necessary

This commit is contained in:
Kevin Veen-Birkenbach [aka. Frantz] committed 2019-11-21 15:16:46 +01:00
1 parent aa6c2afb23
commit d5fed8e997
1 file changed
+4
+4
View File
@@ -43,6 +43,10 @@ if [ ! -f "$ssh_key_path" ]; then
ssh-keygen -t rsa -b 4096 -C "$USER@$HOSTNAME" ssh-keygen -t rsa -b 4096 -C "$USER@$HOSTNAME"
fi fi
fi fi
if [[ "$(sudo lshw -C display)" == *"NVIDIA"* ]]; then
echo "Install NVIDIA drivers..."
sudo mhwd -a pci nonfree 0300
fi
echo "Synchronizing web tools..." echo "Synchronizing web tools..."
sudo pacman --needed -S chromium firefox firefox-ublock-origin firefox-extension-https-everywhere firefox-dark-reader sudo pacman --needed -S chromium firefox firefox-ublock-origin firefox-extension-https-everywhere firefox-dark-reader
echo "Synchronizing office tools..." echo "Synchronizing office tools..."