aboutsummaryrefslogtreecommitdiff
path: root/multimedia/tvheadend/files
diff options
context:
space:
mode:
authorMatthew Hagan <mnhagan88@gmail.com>2022-02-24 09:10:35 +0000
committerRosen Penev <rosenp@gmail.com>2022-02-25 06:08:46 -0800
commitb0d810b2e66683ddab04d94e6c816315aa2ee667 (patch)
treed99074e80ef7d2e7c2a7f7cd4c16291b2cf086c2 /multimedia/tvheadend/files
parent45b8ef28226a6641ffaede9bba94a12c6dc10686 (diff)
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 <mnhagan88@gmail.com>
Diffstat (limited to 'multimedia/tvheadend/files')
-rw-r--r--multimedia/tvheadend/files/dvb.hotplug4
-rw-r--r--multimedia/tvheadend/files/tvheadend.init3
2 files changed, 4 insertions, 3 deletions
diff --git a/multimedia/tvheadend/files/dvb.hotplug b/multimedia/tvheadend/files/dvb.hotplug
index 70b80019d..be7475dab 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 770d6a968..9bf08aa45 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