From d5fed8e9971cda3a7342f269d6aa6dfba4c34153 Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Thu, 21 Nov 2019 15:16:46 +0100 Subject: [PATCH] Added installation of NVIDIA grafic drivers if necessary --- scripts/system-setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/system-setup.sh b/scripts/system-setup.sh index 60a072c..b318503 100644 --- a/scripts/system-setup.sh +++ b/scripts/system-setup.sh @@ -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..."