mirror of
https://github.com/linuxserver/docker-jellyfin.git
synced 2025-10-27 03:03:38 +09:00
revert to using the find command as -c works, and load libs if mounted into system
This commit is contained in:
@@ -1,9 +1,6 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
FILES=$(find /dev/dri /dev/dvb -type c -print 2>/dev/null)
|
FILES=$(find /dev/dri /dev/dvb /dev/vchiq -type c -print 2>/dev/null)
|
||||||
if [ -e "/dev/vchiq" ]; then
|
|
||||||
FILES+=('/dev/vchiq')
|
|
||||||
fi
|
|
||||||
|
|
||||||
for i in $FILES
|
for i in $FILES
|
||||||
do
|
do
|
||||||
@@ -27,3 +24,10 @@ done
|
|||||||
if [ -n "${FILES}" ] && [ ! -f "/groupadd" ]; then
|
if [ -n "${FILES}" ] && [ ! -f "/groupadd" ]; then
|
||||||
usermod -a -G root abc
|
usermod -a -G root abc
|
||||||
fi
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user