mirror of
https://github.com/ollama/ollama.git
synced 2025-03-29 11:11:47 +01:00
Merge pull request #592 from jmorganca/mxyng/install.sh
fix dkms on debian
This commit is contained in:
commit
1210db2924
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user