tvheadend: correct group permissions for /dev/dvb
authorMatthew Hagan <mnhagan88@gmail.com>
Thu, 24 Feb 2022 09:10:35 +0000 (09:10 +0000)
committerRosen Penev <rosenp@gmail.com>
Fri, 25 Feb 2022 14:08:46 +0000 (06:08 -0800)
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>
multimedia/tvheadend/files/dvb.hotplug
multimedia/tvheadend/files/tvheadend.init

index 70b80019d65f678b0529b6d45c046670f957823b..be7475dab076a7a311401f3e48325b6e00b2190b 100644 (file)
@@ -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
index 770d6a9684a679c86183af285a15df8d9bbd2d75..9bf08aa45735c4977be0bd6d52aa77bc3e9591fe 100644 (file)
@@ -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