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
This commit is contained in:
parent
0f3cf1d42e
commit
157f09acdf
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue