Skip to content

Commit

Permalink
fix dkms on debian
Browse files Browse the repository at this point in the history
  • Loading branch information
mxyng committed Sep 25, 2023
1 parent 8396463 commit d0854bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ if ! lsmod | grep -q nvidia; then
debian|ubuntu) $SUDO apt-get -y install linux-headers-$KERNEL_RELEASE ;;
esac

NVIDIA_CUDA_VERSION=$(dkms status | awk -F: '/added/ { print $1 }')
NVIDIA_CUDA_VERSION=$($SUDO dkms status | awk -F: '/added/ { print $1 }')
if [ -n "$NVIDIA_CUDA_VERSION" ]; then
$SUDO dkms install $NVIDIA_CUDA_VERSION
fi
Expand Down

0 comments on commit d0854bf

Please sign in to comment.