Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
c7c845ec
Unverified
Commit
c7c845ec
authored
Sep 06, 2024
by
王卿
Committed by
GitHub
Sep 05, 2024
Browse files
Update install.sh:Replace "command -v" with encapsulated functionality (#6035)
Replace "command -v" with encapsulated functionality
parent
cf486039
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scripts/install.sh
scripts/install.sh
+2
-2
No files found.
scripts/install.sh
View file @
c7c845ec
...
...
@@ -356,12 +356,12 @@ if ! lsmod | grep -q nvidia || ! lsmod | grep -q nvidia_uvm; then
fi
# make sure the NVIDIA modules are loaded on boot with nvidia-persistenced
if
command
-v
nvidia-persistenced
>
/dev/null 2>&1
;
then
if
available
nvidia-persistenced
;
then
$SUDO
touch
/etc/modules-load.d/nvidia.conf
MODULES
=
"nvidia nvidia-uvm"
for
MODULE
in
$MODULES
;
do
if
!
grep
-qxF
"
$MODULE
"
/etc/modules-load.d/nvidia.conf
;
then
echo
"
$MODULE
"
|
sudo
tee
-a
/etc/modules-load.d/nvidia.conf
>
/dev/null
echo
"
$MODULE
"
|
$SUDO
tee
-a
/etc/modules-load.d/nvidia.conf
>
/dev/null
fi
done
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment