Browse Source

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>
lilik-openwrt-22.03
Matthew Hagan 3 years ago
committed by Rosen Penev
parent
commit
b0d810b2e6
2 changed files with 4 additions and 3 deletions
  1. +2
    -2
      multimedia/tvheadend/files/dvb.hotplug
  2. +2
    -1
      multimedia/tvheadend/files/tvheadend.init

+ 2
- 2
multimedia/tvheadend/files/dvb.hotplug View 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

+ 2
- 1
multimedia/tvheadend/files/tvheadend.init View 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


Loading…
Cancel
Save