Commit d0854bf1 authored by Michael Yang's avatar Michael Yang
Browse files

fix dkms on debian

parent 83964632
...@@ -204,7 +204,7 @@ if ! lsmod | grep -q nvidia; then ...@@ -204,7 +204,7 @@ if ! lsmod | grep -q nvidia; then
debian|ubuntu) $SUDO apt-get -y install linux-headers-$KERNEL_RELEASE ;; debian|ubuntu) $SUDO apt-get -y install linux-headers-$KERNEL_RELEASE ;;
esac 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 if [ -n "$NVIDIA_CUDA_VERSION" ]; then
$SUDO dkms install $NVIDIA_CUDA_VERSION $SUDO dkms install $NVIDIA_CUDA_VERSION
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment