[mythtv-users] OT: Checking if a file is parsed.
David Brodbeck
gull at gull.us
Tue Dec 8 22:36:39 UTC 2009
On Dec 8, 2009, at 1:58 PM, <steve.goodey at bt.com>
<steve.goodey at bt.com> wrote:
> Off Topic.
>
> If i want to check that a file is parsed on boot up could I add a
> line such as
> "touch test"?
>
> for example, if i want to check that
>
> /etc/modprobe.d/modprobe.conf containing
>
> options dvb-usb-dib0700 force_lna_activation=1
> options usbcore autosuspend=-1
>
> is actually parsed on booting could I add touch test to the end of
> the file?
That will only work if it's a script that gets executed.
modprobe.conf gets parsed, but not executed, so that won't work.
I suppose you could try checking the access time with "ls -l --
time=access" or "stat" to see when the file was last read. (Assuming
you don't have the filesystem mounted with the "noatime" option. This
is frequently done to speed things up, since otherwise every file read
forces a write to update the access time.)
More information about the mythtv-users
mailing list