mirror of
https://github.com/linuxserver/docker-jellyfin.git
synced 2026-01-23 02:14:30 +00:00
revert to using the find command as -c works, and load libs if mounted into system
This commit is contained in:
parent
635df2acc3
commit
0b4c6d34c0
1 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue