fix gpu bug

Fix gpu detect on some noGPU machine bug
This commit is contained in:
Kane You
2018-07-06 21:26:43 +08:00
parent 91764c4576
commit 62d81ad6b2

View File

@@ -1602,7 +1602,7 @@ detectgpu () {
# Run it only on Intel Processors if GPU is unknown
DetectIntelGPU() {
if [ -r /proc/fb ]; then
gpu=$(awk '{print $2}' /proc/fb)
gpu=$(lspci | grep -i vga | awk -F ": " '{print $2}')
fi
case $gpu in