Commit eb62c843 authored by Dylan Araps's avatar Dylan Araps

gpu: Hide duplicate identical gpus

parent 4e9f9af8
...@@ -1113,7 +1113,7 @@ get_gpu() { ...@@ -1113,7 +1113,7 @@ get_gpu() {
"Linux") "Linux")
# Read GPUs into array. # Read GPUs into array.
IFS=$'\n' IFS=$'\n'
gpus=($(lspci -mm | awk -F '\\"|\\" \\"' '/"Display|"3D|"VGA/ {print $3 " " $4}')) gpus=($(lspci -mm | awk -F '\\"|\\" \\"|\\(' '/"Display|"3D|"VGA/ {print $3 " " $4}' | uniq))
IFS="$old_ifs" IFS="$old_ifs"
# Number the GPUs if more than one exists. # Number the GPUs if more than one exists.
......
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