From d3bfa358845def3d0390dc883d49596174ecb497 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Tue, 16 Nov 2021 11:26:21 +0100 Subject: [hardware-stats] Only print nouveau driver warning if driver is in use This change fixes the false positive use case where the warning is printed during GPU passthrough although the nouveau is not in use. --- .../data/opt/openslx/system-check/hooks.d/50-hardware-warnings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modules/hardware-stats') diff --git a/core/modules/hardware-stats/data/opt/openslx/system-check/hooks.d/50-hardware-warnings b/core/modules/hardware-stats/data/opt/openslx/system-check/hooks.d/50-hardware-warnings index 54894119..3e8f8210 100755 --- a/core/modules/hardware-stats/data/opt/openslx/system-check/hooks.d/50-hardware-warnings +++ b/core/modules/hardware-stats/data/opt/openslx/system-check/hooks.d/50-hardware-warnings @@ -9,6 +9,6 @@ if [ -n "$1" ]; then exec >> "$1" fi -if grep -q '^nouveau ' "/proc/modules"; then +if lspci -nk | grep -q 'Kernel driver in use: nouveau'; then echo 'slx-gfx-nouveau' fi -- cgit v1.2.3-55-g7522