fix permissions for /dev/dvb
This commit is contained in:
parent
8decc2cae8
commit
2dc0521c2c
3 changed files with 10 additions and 4 deletions
|
|
@ -233,6 +233,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
* **10.07.19:** - Fix permissions for tuner (/dev/dvb) devices.
|
||||||
* **20.05.19:** - Bugfix do not allow Root group for Intel QuickSync ownership rules.
|
* **20.05.19:** - Bugfix do not allow Root group for Intel QuickSync ownership rules.
|
||||||
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
|
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
|
||||||
* **22.03.19:** - Fix update logic for `VERSION=public`.
|
* **22.03.19:** - Fix update logic for `VERSION=public`.
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,7 @@ app_setup_block: |
|
||||||
|
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
- { date: "10.07.19:", desc: "Fix permissions for tuner (/dev/dvb) devices." }
|
||||||
- { date: "20.05.19:", desc: "Bugfix do not allow Root group for Intel QuickSync ownership rules." }
|
- { date: "20.05.19:", desc: "Bugfix do not allow Root group for Intel QuickSync ownership rules." }
|
||||||
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
|
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
|
||||||
- { date: "22.03.19:", desc: "Fix update logic for `VERSION=public`." }
|
- { date: "22.03.19:", desc: "Fix update logic for `VERSION=public`." }
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,13 @@
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
# check for the existence of a video device
|
# check for the existence of a video and/or tuner device
|
||||||
if [ -e /dev/dri ]; then
|
if [ -e /dev/dri ] || [ -e /dev/dvb ]; then
|
||||||
|
if [ -e /dev/dri ]; then
|
||||||
VIDEO_GID=$(stat -c '%g' /dev/dri/* | grep -v '^0$' | head -n 1)
|
VIDEO_GID=$(stat -c '%g' /dev/dri/* | grep -v '^0$' | head -n 1)
|
||||||
# just add abc to root if stuff in dri is root owned
|
else
|
||||||
|
VIDEO_GID=$(stat -c '%g' /dev/dvb/* | grep -v '^0$' | head -n 1)
|
||||||
|
fi
|
||||||
|
# just add abc to root if stuff in dri/dvb is root owned
|
||||||
if [ -z "${VIDEO_GID}" ]; then
|
if [ -z "${VIDEO_GID}" ]; then
|
||||||
usermod -a -G root abc
|
usermod -a -G root abc
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue