<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 3, 2014 at 4:09 PM, Andrew C. Stadt <span dir="ltr"><<a href="mailto:acstadt@stadt.ca" target="_blank">acstadt@stadt.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":5jw" class="a3s" style="overflow:hidden">Just base the udev rules off of the devices serial numbers: Here's a<br>
snippet from my MBE's udev rules (which hosts 2 of my hdpvrs)<br>
<br>
[code]<br>
KERNEL=="video[0-9]*", ATTRS{product}=="Hauppauge HD PVR",<br>
ATTRS{serial}=="00A46253", SYMLINK+="hdpvr1", RUN<br>
+="/sbin/hdpvr-install.sh"<br>
KERNEL=="video[0-9]*", ATTRS{product}=="Hauppauge HD PVR",<br>
ATTRS{serial}=="00A40C31", SYMLINK+="hdpvr2", RUN<br>
+="/sbin/hdpvr-install.sh"<br>
[/code]</div></blockquote></div><br>That is exactly what I do, and without the RUN script. Then I can reference /dev/hdpvr1 and /dev/hdpvr2 in mythtv-setup. Works great.</div><div class="gmail_extra"><br></div><div class="gmail_extra">
99% of the time, it seems that my hdpvr1 is /dev/video0 and hdpvr2 is /dev/video1, but every once in a while, it comes up different. Especially if I have to power cycle one of the HDPVRs, which tends to make it come back as /dev/video2. But the hdpvr1 and hdpvr2 symlinks always point to the right one, so no worries.<br>
<br clear="all"><div><div dir="ltr"><br><div>--Greg</div></div></div>
</div></div>