<br><br><div class="gmail_quote">On Fri, Jul 30, 2010 at 10:46 PM, Nick Morrott <span dir="ltr">&lt;<a href="mailto:knowledgejunkie@gmail.com">knowledgejunkie@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 31 July 2010 03:27, MacNean Tyrrell &lt;<a href="mailto:dardack@gmail.com">dardack@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; On Fri, Jul 30, 2010 at 12:07 PM, &lt;<a href="mailto:mythtv.t.wuuza@xoxy.net">mythtv.t.wuuza@xoxy.net</a>&gt; wrote:<br>
&gt;&gt;<br>
</div><div class="im">&gt;&gt; #!/bin/sh<br>
&gt;&gt; while true; do<br>
&gt;&gt;        find /dev/video1 -group video &gt; /tmp/waitForVideo<br>
&gt;&gt;        if [ `grep video1 /tmp/waitForVideo` ]; then<br>
&gt;&gt;                break<br>
&gt;&gt;        fi<br>
&gt;&gt;        sleep 1<br>
&gt;&gt; done<br>
&gt;&gt;<br>
&gt;<br>
&gt; You stick the command for the script in your rc.local?<br>
&gt; Just real quick (i left my program days 12 years ago for accounting/computer<br>
&gt; forensics, so bare with me) I know the find command, what does the -group<br>
&gt; video do?<br>
<br>
</div>It restricts find&#39;s matching to files owned by group &quot;video&quot; - which<br>
is how the script checks that the udev rule has run successfully.<br>
<br>
$ man find<br>
<br>
gives the details.<br>
<br>
Cheers,<br>
Nick<br>
<font color="#888888"><br>
--<br>
Nick Morrott<br>
<br>
MythTV Official wiki: <a href="http://mythtv.org/wiki/" target="_blank">http://mythtv.org/wiki/</a><br>
MythTV users list archive: <a href="http://www.gossamer-threads.com/lists/mythtv/users" target="_blank">http://www.gossamer-threads.com/lists/mythtv/users</a><br>
<br>
&quot;An investment in knowledge always pays the best interest.&quot; - Benjamin Franklin<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sincerely, <br><br>MacNean C. Tyrrell<br>