[mythtv-users] UDEV rule with ENV not working for dual tuner card?

nospam312 nospam312 at gmail.com
Mon Apr 1 20:49:53 UTC 2013


I am using Mythbuntu 12.04 and I am trying to get my dual tuner usb
stick to have custom adapter names.

I am using the following but with appropriate Vender and Product ids.

# Create a symlink for both tuners of afatech device (from the mythtv
wiki udev page)
SUBSYSTEM=="dvb", ATTRS{idVendor}=="13d3", ATTRS{idProduct}=="3237",
ENV{afatech}!="two", ENV{afatech}="two", PROGRAM="/bin/sh -c 'K=%k;
K=$${K#dvb}; printf dvb/adapter_afa1/%%s $${K#*.}'", SYMLINK+="%c"
SUBSYSTEM=="dvb", ATTRS{idVendor}=="13d3", ATTRS{idProduct}=="3237",
ENV{afatech}=="two", ENV{afatech}="one", PROGRAM="/bin/sh -c 'K=%k;
K=$${K#dvb}; printf dvb/adapter_afa2/%%s $${K#*.}'", SYMLINK+="%c"

A "ls -ltr /dev/dvb/adapter_afa1" or "ls -ltr /dev/dvb/adapter_afa2"
the symlinks are pointing to the *same* original adapter instead of
one pointing to adapter0 and the other pointing to adapter1.

Should the ENV{} method work in Mythbuntu 12.04?

Thanks


More information about the mythtv-users mailing list