Skip to content

Commit

Permalink
hwaccel-drivers.sh account for packages that do not have the "-server…
Browse files Browse the repository at this point in the history
…" suffixes
  • Loading branch information
double16 committed Oct 22, 2024
1 parent cd76afd commit bafb05e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hwaccel-drivers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ if [ -s '/sys/module/nvidia/version' ]; then
NV_PKG_VERSION="$(apt list -a "${NV_PKG}-${NV_MAJOR_VER}${NV_PKG_SUFFIX}" 2>/dev/null | grep -F "${NV_VERSION}" | head -n 1 | tr -s '[:space:]' | cut -d ' ' -f 2)"
if [ -n "${NV_PKG_VERSION}" ]; then
NV_PKG_INSTALL+=("${NV_PKG}-${NV_MAJOR_VER}${NV_PKG_SUFFIX}=${NV_PKG_VERSION}")
else
NV_PKG_VERSION="$(apt list -a "${NV_PKG}-${NV_MAJOR_VER}" 2>/dev/null | grep -F "${NV_VERSION}" | head -n 1 | tr -s '[:space:]' | cut -d ' ' -f 2)"
if [ -n "${NV_PKG_VERSION}" ]; then
NV_PKG_INSTALL+=("${NV_PKG}-${NV_MAJOR_VER}=${NV_PKG_VERSION}")
fi
fi
fi
done
Expand Down

0 comments on commit bafb05e

Please sign in to comment.