File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
archiso/airootfs/usr/local/bin Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ if [[ -e /sys/module/nvidia || -e /sys/module/nouveau ]]; then
55fi
66
77# Load compatible version of NVIDIA modules for current hardware
8- if chwd --list | awk ' { if($2 == "nouveau" || $2 == "nvidia-dkms-470xx" || $2 == "nvidia-dkms-580xx") f=1 } END {exit (f == 1) ? 0 : 1 }' ; then
8+ if (chwd --check nouveau ||
9+ chwd --check nvidia-dkms-470xx ||
10+ chwd --check nvidia-dkms-580xx) 2> /dev/null; then
911 modprobe nouveau
10- elif chwd --list | awk ' { if($2 == " nvidia-open-dkms") f=1 } END {exit (f == 1) ? 0 : 1 } ' ; then
12+ elif chwd --check nvidia-open-dkms 2> /dev/null ; then
1113 # Load some basic dependencies of nvidia modules
1214 modprobe video
1315 modprobe drm_ttm_helper
You can’t perform that action at this time.
0 commit comments