[mythtv-users] Joy and pain (Daryl McDonald)

Hika van den Hoven hikavdh at gmail.com
Fri Feb 14 17:20:16 UTC 2014


Hoi Bill,

Friday, February 14, 2014, 6:01:38 PM, you wrote:

> On 02/14/2014 10:26 AM, Hika van den Hoven wrote:
> ...
>> Obviously there is a separate configuration file that handles the ir blaster. A
>> way to find that file is
>> searching al files in /etc for one containing /dev/lirc. Type at the console:
>> for File in `find *`; do
>> if [ -f $File ]; then
>> Count=`grep -ic "/dev/lirc" $File`
>> if [ $Count -gt 0 ]; then
>> echo "  $Count : $File"
>> fi
>> fi
>> done

> Daryl might find this an easier way to search for /dev/lirc in all files
> under /etc:

>      sudo grep -iR "/dev/lirc" /etc

> The sudo eliminates all of the "Permission denied" errors.


Right Bill. Although most of the time just reading is no problem in
/etc. Most files are world readable, with exception to some files
containing passwords etc, which can't be the file he is looking for.

But then you change the part `grep -ic "/dev/lirc" $File` to
`sudo grep -ic "/dev/lirc" $File`
Assuming you don't need to type your password for every file. If
that's the case, you probably have to su to root before running the
command.  

Tot mails,
  Hika                            mailto:hikavdh at gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens
--



More information about the mythtv-users mailing list