Refactor hardware acceleration setup in install script
Improves package installation formatting, removes unnecessary device permission changes, and updates prompt to reference Debian 13 for the non-free Intel driver. Also refines user group addition commands for clarity and reliability.
This commit is contained in:
parent
177e45cc23
commit
c2ee70029d
@ -14,17 +14,18 @@ network_check
|
||||
update_os
|
||||
|
||||
msg_info "Setting Up Hardware Acceleration"
|
||||
$STD apt-get -y install {va-driver-all,ocl-icd-libopencl1,intel-opencl-icd,vainfo,intel-gpu-tools}
|
||||
$STD apt-get -y install \
|
||||
va-driver-all \
|
||||
ocl-icd-libopencl1 \
|
||||
vainfo \
|
||||
intel-gpu-tools
|
||||
if [[ "$CTTYPE" == "0" ]]; then
|
||||
chgrp video /dev/dri
|
||||
chmod 755 /dev/dri
|
||||
chmod 660 /dev/dri/*
|
||||
$STD adduser $(id -u -n) video
|
||||
$STD adduser $(id -u -n) render
|
||||
$STD adduser "$(id -un)" video
|
||||
$STD adduser "$(id -un)" render
|
||||
fi
|
||||
msg_ok "Set Up Hardware Acceleration"
|
||||
msg_ok "Base Hardware Acceleration Set Up"
|
||||
|
||||
read -r -p "${TAB3}Do you need the intel-media-va-driver-non-free driver for HW encoding (Debian 12 only)? <y/N> " prompt
|
||||
read -r -p "${TAB3}Do you need the intel-media-va-driver-non-free driver for HW encoding (Debian 13 only)? <y/N> " prompt
|
||||
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
|
||||
msg_info "Installing Intel Hardware Acceleration (non-free)"
|
||||
cat <<'EOF' >/etc/apt/sources.list.d/non-free.sources
|
||||
|
Loading…
x
Reference in New Issue
Block a user