Update tdarr-install.sh

Hardware Acceleration
This commit is contained in:
tteckster 2023-05-14 11:44:18 -04:00 committed by GitHub
parent 58909e197a
commit 66aef55ab0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,19 @@ $STD apt-get install -y mc
$STD apt-get install -y unzip $STD apt-get install -y unzip
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
if [[ "$CTTYPE" == "0" ]]; then
msg_info "Setting Up Hardware Acceleration"
$STD apt-get -y install \
va-driver-all \
ocl-icd-libopencl1 \
intel-opencl-icd
/bin/chgrp video /dev/dri
/bin/chmod 755 /dev/dri
/bin/chmod 660 /dev/dri/*
msg_ok "Set Up Hardware Acceleration"
fi
msg_info "Installing Tdarr" msg_info "Installing Tdarr"
mkdir -p /opt/tdarr mkdir -p /opt/tdarr
cd /opt/tdarr cd /opt/tdarr