From b0d810b2e66683ddab04d94e6c816315aa2ee667 Mon Sep 17 00:00:00 2001 From: Matthew Hagan Date: Thu, 24 Feb 2022 09:10:35 +0000 Subject: [PATCH] tvheadend: correct group permissions for /dev/dvb Provide group read, write and execute permissions for /dev/dvb, otherwise adapters will not be accessible from tvheadend. Signed-off-by: Matthew Hagan --- multimedia/tvheadend/files/dvb.hotplug | 4 ++-- multimedia/tvheadend/files/tvheadend.init | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/multimedia/tvheadend/files/dvb.hotplug b/multimedia/tvheadend/files/dvb.hotplug index 70b80019d6..be7475dab0 100644 --- a/multimedia/tvheadend/files/dvb.hotplug +++ b/multimedia/tvheadend/files/dvb.hotplug @@ -1,7 +1,7 @@ #!/bin/sh case "$ACTION" in add) - chown -R root:dvb /dev/dvb/* - chmod -R 660 /dev/dvb/* + chgrp -R dvb /dev/dvb/* + chmod -R g+rwX /dev/dvb/* ;; esac diff --git a/multimedia/tvheadend/files/tvheadend.init b/multimedia/tvheadend/files/tvheadend.init index 770d6a9684..9bf08aa457 100644 --- a/multimedia/tvheadend/files/tvheadend.init +++ b/multimedia/tvheadend/files/tvheadend.init @@ -80,7 +80,8 @@ start_service() { ensure_config_exists procd_open_instance procd_set_param file /etc/config/tvheadend - chown -R root:$TVH_GROUP /dev/dvb/* + chgrp -R $TVH_GROUP /dev/dvb/* + chmod -R g+rwX /dev/dvb/* procd_set_param command "$PROG" -B -u $TVH_USER -g $TVH_GROUP load_uci_config procd_close_instance