diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-07-24 18:01:26 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-07-24 18:01:26 +0000 |
commit | 0a4f35fd7d9be0eaf158dd7fb891a197ae733f73 (patch) | |
tree | 0985c59250c38e0c8e8c4d7bbc20b8d8b41904f0 /etc | |
parent | b0bf7d4b458ab8a985cffca7b580d32e2885fd13 (diff) |
update /var/named/etc/localtime when /etc/localtime changes
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.82 1998/07/13 23:24:57 deraadt Exp $ +# $OpenBSD: rc,v 1.83 1998/07/24 18:01:25 millert Exp $ # System startup script run by init on autoboot # or after single-user. @@ -107,6 +107,10 @@ if [ "X${named_flags}" != X"NO" ]; then if [ ! -c "${named_chroot}/dev/null" ]; then ( cd /dev ; pax -rw -pe null ${named_chroot}/dev ) fi + if [ -f /etc/localtime -a -d "${named_chroot}/etc" ]; then + cmp -s /etc/localtime "${named_chroot}/etc/localtime" \ + || cp -p /etc/localtime "${named_chroot}/etc/localtime" + fi named_flags="-t ${named_chroot} ${named_flags}" fi echo 'starting named'; named $named_flags |