From 8c7d2d51c7a7c37b41104b12f3f42878aaf3583f Mon Sep 17 00:00:00 2001 From: wilou Date: Thu, 25 Apr 2024 14:06:29 +0000 Subject: [PATCH] Actualiser install.sh --- install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install.sh b/install.sh index 8500afa..789bb38 100644 --- a/install.sh +++ b/install.sh @@ -64,6 +64,16 @@ org.jdownloader.JDownloader \ com.valvesoftware.Steam \ com.stremio.Stremio +# Installation des drivers Nvidia +gpu=$(lspci | grep -i 'nvidia') + +if [[ -n $gpu ]]; then + printf 'Une carte Nvidia a été détectée: %s\n' "$gpu" + apt install nvidia-smi +else + printf 'Aucune carte Nvidia détectée\n' +fi + # Configuration du profil dconf de l'utilisateur pour synchroniser les paramètres via un fichier texte mkdir -p /etc/dconf/profile cp $builddir/dconf/user /etc/dconf/profile/user