aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2018-01-09 20:35:58 +0000
committerCy Schubert <cy@FreeBSD.org>2018-01-09 20:35:58 +0000
commitda7a237fac75cb9f3cd02ca4ba8b6bdbb8263ea8 (patch)
treed52eafcb9dcf2b206846d2893a6256dfd3beea21 /etc/rc.d
parent566a135bd59f00bb1e0d1347cd75a1c07291c176 (diff)
Notes
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/ntpd6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.d/ntpd b/etc/rc.d/ntpd
index 051f857399c55..5391aecffd580 100755
--- a/etc/rc.d/ntpd
+++ b/etc/rc.d/ntpd
@@ -144,9 +144,9 @@ ntpd_fetch_leapfile() {
done
ntp_ver_no_tmp=$(get_ntp_leapfile_ver $ntp_tmp_leapfile)
ntp_expiry_tmp=$(get_ntp_leapfile_expiry $ntp_tmp_leapfile)
- if [ "$ntp_ver_no_tmp" -gt "$ntp_ver_no_db" -o \
- "$ntp_ver_no_tmp" -eq "$ntp_ver_no_db" -a \
- "$ntp_expiry_tmp" -gt "$ntp_expiry_db" ]; then
+ if [ "$ntp_expiry_tmp" -gt "$ntp_expiry_db" -o \
+ "$ntp_expiry_tmp" -eq "$ntp_expiry_db" -a \
+ "$ntp_ver_no_tmp" -gt "$ntp_ver_no_db" ]; then
$verbose using $url as $ntp_db_leapfile
mv $ntp_tmp_leapfile $ntp_db_leapfile
else