summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Debesse <dev@illwieckz.net>2016-03-26 00:58:00 +0100
committerThomas Debesse <dev@illwieckz.net>2016-03-26 01:30:04 +0100
commitd320b733714053cc699b6e7684dc43bd62a14d1f (patch)
tree21eb341ca880983c8087658c27044804e2464912
parentaa2aaefa13267b51c9548fb0c3192f838b95a5ea (diff)
remove annoying corp/inc/ltd notices in gpu vendor name
-rwxr-xr-xsysinfo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysinfo.sh b/sysinfo.sh
index fa988e1..55b5990 100755
--- a/sysinfo.sh
+++ b/sysinfo.sh
@@ -49,7 +49,7 @@ disk_free=`echo $sua | awk '{printf "%d",$4/1048576;}'`;
gpu=''
if [ -x `which lspci` ]; then
gpu_slot=`lspci -mm | grep 'VGA' | head -n 1 | cut -f1 -d' '`
- gpu_vendor=`lspci -s "${gpu_slot}" -mm -v | grep '^Vendor' | sed -e 's/Vendor:\t//' | sed -e 's/.*[ ]\[//;s/\].*//'`
+ gpu_vendor=`lspci -s "${gpu_slot}" -mm -v | grep '^Vendor' | sed -e 's/Vendor:\t//' | sed -e 's/.*[ ]\[//;s/\].*//' | sed -e 's/, Inc.//;s/ Corporation//;s/ Co.//;s/,Ltd.//'`
gpu_model=`lspci -s "${gpu_slot}" -mm -v | grep '^Device' | sed -e 's/Device:\t//' | sed -e 's/.*[ ]\[//;s/\].*//'`
gpu="${gpu_vendor} ${gpu_model}"
fi