Debugging.
This commit is contained in:
+3
-6
@@ -124,10 +124,9 @@ detect_graphics() {
|
|||||||
local integrated
|
local integrated
|
||||||
local pci_addr
|
local pci_addr
|
||||||
|
|
||||||
OLD_IFS="\$IFS"
|
|
||||||
IFS=\$'n'
|
|
||||||
|
|
||||||
while read -r gpu; do
|
while read -r gpu; do
|
||||||
|
echo \$gpu >> "${REMOTE_STDERR}"
|
||||||
|
|
||||||
pci_addr="\$(lspci | grep VGA | head -c 7)"
|
pci_addr="\$(lspci | grep VGA | head -c 7)"
|
||||||
|
|
||||||
# Brand
|
# Brand
|
||||||
@@ -180,9 +179,7 @@ detect_graphics() {
|
|||||||
|
|
||||||
done < <(lspci | grep -e "VGA" -e "3D" >> "${REMOTE_STDOUT}" 2>> "${REMOTE_STDERR}")
|
done < <(lspci | grep -e "VGA" -e "3D" >> "${REMOTE_STDOUT}" 2>> "${REMOTE_STDERR}")
|
||||||
|
|
||||||
IFS="\${OLD_IFS}"
|
echo "\$gpus" >> "${REMOTE_STDERR}"
|
||||||
|
|
||||||
echo "\$gpus" >> ${REMOTE_STDERR}
|
|
||||||
append_to_report "graphics" "\$gpus"
|
append_to_report "graphics" "\$gpus"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user