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>
#!/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
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