[mythtv-users] Permission problem on /dev/video 0-3

Nick Morrott knowledgejunkie at gmail.com
Sat Jul 31 02:46:51 UTC 2010


On 31 July 2010 03:27, MacNean Tyrrell <dardack at gmail.com> wrote:
>
> On Fri, Jul 30, 2010 at 12:07 PM, <mythtv.t.wuuza at xoxy.net> wrote:
>>
>> #!/bin/sh
>> while true; do
>>        find /dev/video1 -group video > /tmp/waitForVideo
>>        if [ `grep video1 /tmp/waitForVideo` ]; then
>>                break
>>        fi
>>        sleep 1
>> done
>>
>
> You stick the command for the script in your rc.local?
> Just real quick (i left my program days 12 years ago for accounting/computer
> forensics, so bare with me) I know the find command, what does the -group
> video do?

It restricts find's matching to files owned by group "video" - which
is how the script checks that the udev rule has run successfully.

$ man find

gives the details.

Cheers,
Nick

-- 
Nick Morrott

MythTV Official wiki: http://mythtv.org/wiki/
MythTV users list archive: http://www.gossamer-threads.com/lists/mythtv/users

"An investment in knowledge always pays the best interest." - Benjamin Franklin


More information about the mythtv-users mailing list