Skip to content

Commit

Permalink
fix: skip do_memory_split on bookworm (#223)
Browse files Browse the repository at this point in the history
`do_memory_split` got removed on bookworm. Fixes #219
  • Loading branch information
mryel00 authored Jan 7, 2024
1 parent 61421f5 commit 4feaab7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/libs/set_gpumem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ set_gpu_mem() {
else
mem_split=256
fi
if [[ "$(is_raspbian)" = "1" ]] && [[ -n "$(command -v raspi-config)" ]]; then
if [[ "$(is_raspbian)" = "1" ]] &&
[[ "$(is_bookworm)" = "0" ]] &&
[[ -n "$(command -v raspi-config)" ]]; then
if sudo raspi-config nonint do_memory_split "${mem_split}" ;then
status_msg "Trying to set minimum GPU Memory to ${mem_split} MB ..." "0"
else
Expand Down

0 comments on commit 4feaab7

Please sign in to comment.