mirror of
https://github.com/keylase/nvidia-patch.git
synced 2026-11-28 08:51:29 +00:00
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>
34 KiB
Executable File
34 KiB
Executable File