summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-07-24 18:01:26 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-07-24 18:01:26 +0000
commit0a4f35fd7d9be0eaf158dd7fb891a197ae733f73 (patch)
tree0985c59250c38e0c8e8c4d7bbc20b8d8b41904f0 /etc
parentb0bf7d4b458ab8a985cffca7b580d32e2885fd13 (diff)
update /var/named/etc/localtime when /etc/localtime changes
Diffstat (limited to 'etc')
-rw-r--r--etc/rc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index ae16d5d7bad..1cbe75af5fa 100644
--- a/etc/rc
+++ b/etc/rc
@@ -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