Keeping /etc/localtime up-to-date

poyopoyo at puripuri.plala.or.jp poyopoyo at puripuri.plala.or.jp
Sun Mar 27 20:58:41 UTC 2011


At Sun, 27 Mar 2011 13:31:22 -0700,
Doug Barton wrote:
> This is more along the lines of something that would be easy to work 
> with in mergemaster. If I can tell what file in /usr/share/zoneinfo to 
> compare /etc/localtime to (ideally with fully path), I'm happy to 
> provide a mechanism in mergemaster to make sure it stays up to date.

tzsetup(8) creates /var/db/zoneinfo which contains path to the installed
zoneinfo file relative to /usr/share/zineinfo/.

$ cat /var/db/zoneinfo
Asia/Tokyo
$ md5 -q /etc/localtime /usr/share/zoneinfo/$(cat /var/db/zoneinfo)
f17769e8eb35e7a08cfedfe9b2f6b5ef
f17769e8eb35e7a08cfedfe9b2f6b5ef

-- 
kuro


More information about the freebsd-hackers mailing list