* dvb devices
@ 2004-12-14 13:20 Gerd Knorr
2004-12-14 18:01 ` Marco d'Itri
0 siblings, 1 reply; 2+ messages in thread
From: Gerd Knorr @ 2004-12-14 13:20 UTC (permalink / raw)
To: linux-hotplug
Hi,
Here are some rules for udev to deal with dvb devices. It's pretty
long, but I havn't found a easier way to make it fly without using
PROGRAM + some external script. Suggestions are welcome.
The kernel name "dvb<n1>.<name><n2>" must be mapped to
"dvb/adapter<n1>/<name><n2>".
Gerd
===============[ cut here ]===============
KERNEL="dvb0.dvr*", NAME="dvb/adapter0/dvr%n"
KERNEL="dvb0.demux*", NAME="dvb/adapter0/demux%n"
KERNEL="dvb0.frontend*", NAME="dvb/adapter0/frontend%n"
KERNEL="dvb0.audio*", NAME="dvb/adapter0/audio%n"
KERNEL="dvb0.ca*", NAME="dvb/adapter0/ca%n"
KERNEL="dvb0.osd*", NAME="dvb/adapter0/osd%n"
KERNEL="dvb0.net*", NAME="dvb/adapter0/net%n"
KERNEL="dvb0.video*", NAME="dvb/adapter0/video%n"
KERNEL="dvb1.dvr*", NAME="dvb/adapter1/dvr%n"
KERNEL="dvb1.demux*", NAME="dvb/adapter1/demux%n"
KERNEL="dvb1.frontend*", NAME="dvb/adapter1/frontend%n"
KERNEL="dvb1.audio*", NAME="dvb/adapter1/audio%n"
KERNEL="dvb1.ca*", NAME="dvb/adapter1/ca%n"
KERNEL="dvb1.osd*", NAME="dvb/adapter1/osd%n"
KERNEL="dvb1.net*", NAME="dvb/adapter1/net%n"
KERNEL="dvb1.video*", NAME="dvb/adapter1/video%n"
KERNEL="dvb2.dvr*", NAME="dvb/adapter2/dvr%n"
KERNEL="dvb2.demux*", NAME="dvb/adapter2/demux%n"
KERNEL="dvb2.frontend*", NAME="dvb/adapter2/frontend%n"
KERNEL="dvb2.audio*", NAME="dvb/adapter2/audio%n"
KERNEL="dvb2.ca*", NAME="dvb/adapter2/ca%n"
KERNEL="dvb2.osd*", NAME="dvb/adapter2/osd%n"
KERNEL="dvb2.net*", NAME="dvb/adapter2/net%n"
KERNEL="dvb2.video*", NAME="dvb/adapter2/video%n"
KERNEL="dvb3.dvr*", NAME="dvb/adapter3/dvr%n"
KERNEL="dvb3.demux*", NAME="dvb/adapter3/demux%n"
KERNEL="dvb3.frontend*", NAME="dvb/adapter3/frontend%n"
KERNEL="dvb3.audio*", NAME="dvb/adapter3/audio%n"
KERNEL="dvb3.ca*", NAME="dvb/adapter3/ca%n"
KERNEL="dvb3.osd*", NAME="dvb/adapter3/osd%n"
KERNEL="dvb3.net*", NAME="dvb/adapter3/net%n"
KERNEL="dvb3.video*", NAME="dvb/adapter3/video%n"
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: dvb devices
2004-12-14 13:20 dvb devices Gerd Knorr
@ 2004-12-14 18:01 ` Marco d'Itri
0 siblings, 0 replies; 2+ messages in thread
From: Marco d'Itri @ 2004-12-14 18:01 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 610 bytes --]
On Dec 14, Gerd Knorr <kraxel@bytesex.org> wrote:
> Here are some rules for udev to deal with dvb devices. It's pretty
> long, but I havn't found a easier way to make it fly without using
> PROGRAM + some external script. Suggestions are welcome.
Why bother? It's not like there are hundred of devices, so running a
script like the one already provided with udev should not be a problem.
md@wonderland:~$cat /etc/udev/scripts/dvb.sh
#!/bin/sh -e
echo $1 | sed -e 's#^dvb\([0-9]\)\.\([^0-9]*\)\([0-9]\)#dvb/adapter\1/\2\3#'
exit 0
md@wonderland:~$
--
ciao, |
Marco | [9790 cofET.tv2EGkM]
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-14 18:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-14 13:20 dvb devices Gerd Knorr
2004-12-14 18:01 ` Marco d'Itri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).