mediad

Thomas Schmidt tschmidt at debian.org
Mon Apr 2 20:16:41 UTC 2007


* Tobias Grimm schrieb am 02.04.07, um 21:32 Uhr:
> So you mean something like this:
> 
> /etc/vdr/groups:
> 
>     plugdev: vdr-plugin-mediad
>     audio: vdr-plugin-bitstreamout
>     plugdev: vdr-plugin-somethingelse
> 
> Each plugin requiring vdr to be the member of a specific group, adds the
> group name to /var/lib/vdr/groups in postinst.
>
> postrm removes this entry again and if no other entry for this group is
> left, removes the user vdr from that group.

Yes, more or less this way, but i would prefer if we have a common
script which adds or removes such entries, so that plugins just have
to call one common command in postins/postrm, maybe in the form:

/path/to/script register vdr-plugin-xyz plugdev

and

/path/to/script unregister vdr-plugin-xyz plugdev

The script itself would then add or remove vdr from the specified group
if necessary.

> But if someone added vdr manually to a specific group (e.g. in order to
> run a custom script from within VDR), this group assignment should never
> be removed automatically. So the user not just has to add vdr to the
> group, but must also add an entry to /etc/vdr/groups.

Well, it would be only one step if the user would call maybe

/path/to/script register vdr groupname

What do you think about this?


Regards,
Thomas

-- 
Thomas Schmidt, Debian VDR Team
http://pkg-vdr-dvb.alioth.debian.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vdr-dvb-devel/attachments/20070402/fd6152d1/attachment.pgp


More information about the pkg-vdr-dvb-devel mailing list