Update 50-gid-video

Never use root
This commit is contained in:
Eric Nemchik 2019-05-20 21:57:59 -05:00 committed by Ryan Kuba
parent 522911f771
commit 256bf7a1d6

View file

@ -2,7 +2,7 @@
# Check for the existence of the Intel video device # Check for the existence of the Intel video device
if [ -e /dev/dri ]; then if [ -e /dev/dri ]; then
VIDEO_GID=$(stat -c '%g' /dev/dri/* | head -n 1) VIDEO_GID=$(stat -c '%g' /dev/dri/* | grep -v 0 | head -n 1)
else else
exit 0 exit 0
fi fi