diff options
author | cy <cy@FreeBSD.org> | 2016-02-14 23:04:52 +0000 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2016-02-14 23:04:52 +0000 |
commit | 2cbc922afeafbcd47c96fbfc1d0bf6a2c87f28de (patch) | |
tree | c11919a74b3be70ad41ffd5fa47ae7588c1942e8 | |
parent | f04c791a3aa42573cff1a60f1df3eab08edb8892 (diff) | |
download | FreeBSD-src-2cbc922afeafbcd47c96fbfc1d0bf6a2c87f28de.zip FreeBSD-src-2cbc922afeafbcd47c96fbfc1d0bf6a2c87f28de.tar.gz |
MFC r295495 - Update leapsecond file in non-chroot environments.
PR: 207095
Submitted by: madpilot
Approved by: re (marius)
-rwxr-xr-x | etc/rc.d/ntpd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.d/ntpd b/etc/rc.d/ntpd index 7f28358..fe2fc4b 100755 --- a/etc/rc.d/ntpd +++ b/etc/rc.d/ntpd @@ -28,14 +28,14 @@ ntpd_precmd() rc_flags="-g $rc_flags" fi - if [ -z "$ntpd_chrootdir" ]; then - return 0; - fi - if [ ! -f $ntp_db_leapfile ]; then ntpd_fetch_leapfile fi + if [ -z "$ntpd_chrootdir" ]; then + return 0; + fi + # If running in a chroot cage, ensure that the appropriate files # exist inside the cage, as well as helper symlinks into the cage # from outside. |