Another approach would be to use a u-boot environment variable to save
and restore the (approximate) time.  The advantage is that it could be
done before fscking any filesystems, at the cost of some additional
wear on the flash.

No matter where you store the time, when restoring it you could also
look for the newest mtime of files in /var, to get a better estimate
in the case where the system crashed before saving a recent time
value.

-- 
Eric Cooper             e c c @ c m u . e d u


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/20101021190816.gc6...@localhost

Reply via email to