Browse Source

update /var/named/etc/localtime when /etc/localtime changes

OPENBSD_2_4
millert 26 years ago
parent
commit
49578c9b1e
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/etc/rc

+ 5
- 1
src/etc/rc View File

@ -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


Loading…
Cancel
Save