Update jellyfin-install.sh

- add vainfo and intel-gpu-tools
- code refactoring
pull/2563/head
tteckster 2024-02-22 13:44:02 -05:00 committed by GitHub
parent 03fbdbe74f
commit 57fca777b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 8 deletions

View File

@ -22,14 +22,7 @@ msg_ok "Installed Dependencies"
if [[ "$CTTYPE" == "0" ]]; then if [[ "$CTTYPE" == "0" ]]; then
msg_info "Setting Up Hardware Acceleration" msg_info "Setting Up Hardware Acceleration"
$STD apt-get -y install \ $STD apt-get -y install {va-driver-all,ocl-icd-libopencl1,intel-opencl-icd,vainfo,intel-gpu-tools}
va-driver-all \
ocl-icd-libopencl1
if [[ ${PCT_OSVERSION} == "20.04" ]]; then
$STD apt-get install -y beignet-opencl-icd
else
$STD apt-get install -y intel-opencl-icd
fi
chgrp video /dev/dri chgrp video /dev/dri
chmod 755 /dev/dri chmod 755 /dev/dri
chmod 660 /dev/dri/* chmod 660 /dev/dri/*