Fixed TARGET_GRAPHICS_BRAND not found
This commit is contained in:
@@ -67,6 +67,8 @@ hardware_detection() {
|
|||||||
local TMPFILE="/tmp/nixos-installation-hw-detection"
|
local TMPFILE="/tmp/nixos-installation-hw-detection"
|
||||||
|
|
||||||
ssh_to_host 'bash -s' << SSHEND
|
ssh_to_host 'bash -s' << SSHEND
|
||||||
|
TARGET_GRAPHICS_BRAND=()
|
||||||
|
|
||||||
for brand in Intel AMD NVIDIA; do
|
for brand in Intel AMD NVIDIA; do
|
||||||
if lspci -nn 2>/dev/null | grep -i "vga" | grep -iq "\${brand}"; then
|
if lspci -nn 2>/dev/null | grep -i "vga" | grep -iq "\${brand}"; then
|
||||||
TARGET_GRAPHICS="true"
|
TARGET_GRAPHICS="true"
|
||||||
|
|||||||
Reference in New Issue
Block a user