mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
Update model fetching
This commit is contained in:
parent
1fe1bffe1f
commit
e3e2ad0f37
|
@ -18,7 +18,7 @@ installDeps() {
|
|||
|
||||
checkHardware() {
|
||||
# Refer https://nouveau.freedesktop.org/CodeNames.html for model code names
|
||||
model=$(lspci -k | grep -A 2 -E "(VGA|3D)" | grep controller | cut -d ' ' -f 7 | cut -c 1-2 )
|
||||
model=$(lspci -k | grep -A 2 -E "(VGA|3D)" | grep NVIDIA | sed 's/.*Corporation //;s/ .*//' | cut -c 1-2)
|
||||
case "$model" in
|
||||
GM|GP|GV) return 1 ;;
|
||||
TU|GA|AD) return 0 ;;
|
||||
|
|
Loading…
Reference in New Issue
Block a user