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
532db583
Unverified
Commit
532db583
authored
Jun 14, 2024
by
Daniel Hiltgen
Committed by
GitHub
Jun 14, 2024
Browse files
Merge pull request #4972 from jayson-cloude/main
fix: "Skip searching for network devices"
parents
45cacbaf
157f09ac
Changes
1
Hide 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 @
532db583
...
@@ -159,8 +159,8 @@ check_gpu() {
...
@@ -159,8 +159,8 @@ check_gpu() {
esac
;;
esac
;;
lshw
)
lshw
)
case
$2
in
case
$2
in
nvidia
)
available lshw
&&
$SUDO
lshw
-c
display
-numeric
|
grep
-q
'vendor: .* \[10DE\]'
||
return
1
;;
nvidia
)
available lshw
&&
$SUDO
lshw
-c
display
-numeric
-disable
network
|
grep
-q
'vendor: .* \[10DE\]'
||
return
1
;;
amdgpu
)
available lshw
&&
$SUDO
lshw
-c
display
-numeric
|
grep
-q
'vendor: .* \[1002\]'
||
return
1
;;
amdgpu
)
available lshw
&&
$SUDO
lshw
-c
display
-numeric
-disable
network
|
grep
-q
'vendor: .* \[1002\]'
||
return
1
;;
esac
;;
esac
;;
nvidia-smi
)
available nvidia-smi
||
return
1
;;
nvidia-smi
)
available nvidia-smi
||
return
1
;;
esac
esac
...
...
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