[mythtv-users] UDEV

Daryl McDonald darylangela at gmail.com
Tue Jan 22 21:03:16 UTC 2019


https://www.mythtv.org/wiki/Device_Filenames_and_udev

>From the above wiki I've modified my UDEV rule for one Pinacle card:

SUBSYSTEM=="dvb", ATTRS{device}=="0x8802", PROGRAM="/bin/sh -c 'K=%k;
K=$${K#dvb}; printf dvb/adapterPC800i/%%s $${K#*.}; exit 0'", SYMLINK+="%c"


to this for twin Pinacle cards:


SUBSYSTEM=="dvb", ATTRS{device}=="0x8802", PROGRAM="/bin/sh -c 'K=%k;
K=$${K#dvb};

N=$${K#*.}; if [ ! -e /dvb/adapterPC800i ] ; then printf
dvb/adapterPC800i/%%s $${K#*.}; else

printf dvb/adapterPC800j/%%s $${K#*.}; fi ; exit 0'", SYMLINK+="%c"


In my (code limited) mind this might work, would anyone else like to offer
an opinion while I wait for the board that will host this pair of cards?


TIA  Daryl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20190122/468e8225/attachment.html>


More information about the mythtv-users mailing list