[mythtv-users] New Udev Rules

Daryl McDonald darylangela at gmail.com
Thu Nov 29 18:40:09 UTC 2018


# /etc/udev/rules.d/10-local.rules

#

# To Ientify serial nos etc for a Device call

# udevadm info -a -p $(udevadm info -q path -n /dev/dvb/adapter0/frontend0)

#

# Create a symlink for single tuner HP1250

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


# Create a symlink for single tuner WinTV device

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


# Create a symlink for each of two single tuner Pinacle devices

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


Whenever my replacement mobo gets here, I'll be putting two additional
cards in it. The first rule works in the current setup, the second rule
should work (since the first one does) BUT,

since the second additional card is identical to one of my current cards,
I'm wondering if the      "(i,j)" of the third rule/symlink will name two
Pinacle cards PC800i, and PC800j.


If not how might I modify the third rule to accomplish this?  TIA  Daryl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20181129/559ef00d/attachment.html>


More information about the mythtv-users mailing list