mirror of
https://github.com/linuxserver/docker-plex.git
synced 2026-02-19 20:03:03 +08:00
optmizations from @nemchik
This commit is contained in:
parent
177088c298
commit
b01cd522f1
@ -1,16 +1,6 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# check for the existence of a video and/or tuner device
|
||||
if [ -e /dev/dri ] || [ -e /dev/dvb ]; then
|
||||
if [ -e /dev/dri ]; then
|
||||
FILES="${FILES} /dev/dri/*"
|
||||
fi
|
||||
if [ -e /dev/dvb ]; then
|
||||
FILES="${FILES} /dev/dvb/*"
|
||||
fi
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
FILES=$(find /dev/dri /dev/dvb -type c -print 2>/dev/null)
|
||||
|
||||
for i in $FILES
|
||||
do
|
||||
@ -31,6 +21,6 @@ do
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ! -z "${FILES}" ] && [ ! -f "/groupadd" ]; then
|
||||
if [ -n "${FILES}" ] && [ ! -f "/groupadd" ]; then
|
||||
usermod -a -G root abc
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user