For a file-integrity checker, I think you will want to store the
data in a database of somesort, so you can compare it to
current values after a reboot. Here is an older, but still nice script called
It uses ascii flat files, but you could probably speed things up by using hashes and Storable.