diff --git a/install/tunarr-install.sh b/install/tunarr-install.sh index 9efb8614..606ea4ef 100644 --- a/install/tunarr-install.sh +++ b/install/tunarr-install.sh @@ -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)? " prompt +read -r -p "${TAB3}Do you need the intel-media-va-driver-non-free driver for HW encoding (Debian 13 only)? " prompt if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then msg_info "Installing Intel Hardware Acceleration (non-free)" cat <<'EOF' >/etc/apt/sources.list.d/non-free.sources