From 0b4c6d34c0d10a8bb12e967b2a7ea23ee433b4bf Mon Sep 17 00:00:00 2001 From: thelamer Date: Thu, 9 Jan 2020 19:21:00 -0800 Subject: [PATCH] revert to using the find command as -c works, and load libs if mounted into system --- root/etc/cont-init.d/40-gid-video | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/root/etc/cont-init.d/40-gid-video b/root/etc/cont-init.d/40-gid-video index 547197b..9ebcb11 100644 --- a/root/etc/cont-init.d/40-gid-video +++ b/root/etc/cont-init.d/40-gid-video @@ -1,9 +1,6 @@ #!/usr/bin/with-contenv bash -FILES=$(find /dev/dri /dev/dvb -type c -print 2>/dev/null) -if [ -e "/dev/vchiq" ]; then - FILES+=('/dev/vchiq') -fi +FILES=$(find /dev/dri /dev/dvb /dev/vchiq -type c -print 2>/dev/null) for i in $FILES do @@ -27,3 +24,10 @@ done if [ -n "${FILES}" ] && [ ! -f "/groupadd" ]; then usermod -a -G root abc fi + +# openmax lib loading +if [ -e "/opt/vc/lib" ] && [ ! -e "/etc/ld.so.conf.d/00-vmcs.conf" ]; then + echo "[jellyfin-init] Pi Libs detected loading" + echo "/opt/vc/lib" > "/etc/ld.so.conf.d/00-vmcs.conf" + ldconfig +fi