Unverified Commit 157f09ac authored by jayson-cloude's avatar jayson-cloude Committed by GitHub
Browse files

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
parent 0f3cf1d4
...@@ -159,8 +159,8 @@ check_gpu() { ...@@ -159,8 +159,8 @@ check_gpu() {
esac ;; esac ;;
lshw) lshw)
case $2 in case $2 in
nvidia) available lshw && $SUDO lshw -c display -numeric | grep -q 'vendor: .* \[10DE\]' || 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 | grep -q 'vendor: .* \[1002\]' || return 1 ;; amdgpu) available lshw && $SUDO lshw -c display -numeric -disable network | grep -q 'vendor: .* \[1002\]' || return 1 ;;
esac ;; esac ;;
nvidia-smi) available nvidia-smi || return 1 ;; nvidia-smi) available nvidia-smi || return 1 ;;
esac esac
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment