From 157f09acdfd692230075a67783510b8d2bb0d5b0 Mon Sep 17 00:00:00 2001 From: jayson-cloude <62731682+jayson-cloude@users.noreply.github.com> Date: Tue, 11 Jun 2024 16:11:35 +0800 Subject: [PATCH] fix: "Skip searching for network devices" On an Ubuntu 24.04 computer with vmware installed, the sudo lshw command will get stuck. "Network interfaces" is always displayed --- scripts/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index a71d921d..0f12d7e0 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -159,8 +159,8 @@ check_gpu() { esac ;; lshw) case $2 in - nvidia) available lshw && $SUDO lshw -c display -numeric | grep -q 'vendor: .* \[10DE\]' || return 1 ;; - amdgpu) available lshw && $SUDO lshw -c display -numeric | grep -q 'vendor: .* \[1002\]' || return 1 ;; + nvidia) available lshw && $SUDO lshw -c display -numeric -disable network | grep -q 'vendor: .* \[10DE\]' || return 1 ;; + amdgpu) available lshw && $SUDO lshw -c display -numeric -disable network | grep -q 'vendor: .* \[1002\]' || return 1 ;; esac ;; nvidia-smi) available nvidia-smi || return 1 ;; esac