[mythtv-users] OT, udev rules for TD-stick and C-1501

Henrik Beckman henrik.list at gmail.com
Mon Mar 9 17:18:05 UTC 2009


I wrote a few udev rules for my tv cards that I thought Iīd share. I
had great help from
http://www.mythtv.org/wiki/Device_Filenames_and_udev

Using 'udevinfo -a -p $(udevinfo -q path -n /dev/dvb/adapter0/demux0)'
to get a nice list of information to feed into the rules. Donīt use
the urb number in the rules, they change.

There are NO linebreaks in the rules!

# Create a symlink /dev/dvb/adapter101 pointing to NovaT 500Stick
with serial 4028638334
KERNEL=="dvb1.*", SUBSYSTEM=="dvb", ATTRS{product}=="NovaT 500Stick",
ATTRS{serial}=="402er101/%%s $${K#*.}'", SYMLINK+="%c"

# Create a symlink /dev/dvb/adapter102 pointing to NovaT 500Stick
with serial 4028638334
KERNEL=="dvb2.*", SUBSYSTEM=="dvb", ATTRS{product}=="NovaT 500Stick",
ATTRS{serial}=="402er102/%%s $${K#*.}'", SYMLINK+="%c"

# Create a symlink /dev/dvb/adapter103 pointing to C-1501
SUBSYSTEM=="dvb", ATTRS{device}=="0x7146",
ATTRS{subsystem_device}=="0x101a", PROGRAM="/b SYMLINK+="%c"

Now I point my mythtv to the 101, 102, 103 adapters and get my cards
in the order I want regardless of what other cards I might have in my
box.

/Henrik


More information about the mythtv-users mailing list