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>
This commit is contained in:
Matthew Hagan 2022-02-24 09:10:35 +00:00 committed by Rosen Penev
parent 45b8ef2822
commit b0d810b2e6
2 changed files with 4 additions and 3 deletions

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

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