From 6a1301d0882e95fa582ebd72e00b58f116739ff6 Mon Sep 17 00:00:00 2001 From: Muhammad Ichsan <60387342+ichsan2895@users.noreply.github.com> Date: Mon, 24 Jan 2022 18:49:06 +0700 Subject: [PATCH] Request a change about Nvidia detector My previous pull is works perfectly in my computer, it can detect Nvidia driver. But I afraid my code don't work with another computer since I never test with that. So, I add my previous code (which worked in my computer) and keep the previous code (which I think it will works on another computer) --- webodm.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webodm.sh b/webodm.sh index d41dee49..fcc752c2 100755 --- a/webodm.sh +++ b/webodm.sh @@ -177,6 +177,13 @@ detect_gpus(){ set -e return fi + + lspci | grep "VGA.*NVIDIA" + if [ "${?}" -eq 0 ]; then + export GPU_NVIDIA=true + set -e + return + fi lspci | grep "VGA.*Intel" if [ "${?}" -eq 0 ]; then