Files
nvidia-patch/patch.sh
ram/haidar 2b25626c77 linux: skip nvidia-smi lookup when driver version is given with -d (#1150)
patch_common() looked up nvidia-smi and exited with "nvidia-smi utility not found" before checking the manually entered driver version, so -d could not be used on systems without nvidia-smi (e.g. Batocera). Move the lookup into the branch that detects the version, so -d never touches nvidia-smi.

Apply the same change to patch.sh and patch-fbc.sh. Behaviour without -d is unchanged, including the error message when nvidia-smi is missing.

Based on #876 by DTJW92, whose patch.sh change could not be merged as-is.

Co-authored-by: DTJW92 <96082560+DTJW92@users.noreply.github.com>
2026-11-14 17:41:50 +07:00

34 KiB
Executable File