480.leapfile-ntpd revision 295461
1#!/bin/sh 2# 3# $FreeBSD: stable/10/etc/periodic/daily/480.leapfile-ntpd 295461 2016-02-10 07:16:17Z cy $ 4# 5 6# If there is a global system configuration file, suck it in. 7# 8if [ -r /etc/defaults/periodic.conf ] 9then 10 . /etc/defaults/periodic.conf 11 source_periodic_confs 12fi 13 14case "$daily_ntpd_leapfile_enable" in 15 [Yy][Ee][Ss]) 16 case "$daily_ntpd_avoid_congestion" in 17 [Yy][Ee][Ss]) 18 # Avoid dogpiling 19 (sleep $(jot -r 1 0 86400); service ntpd fetch) & 20 ;; 21 *) 22 service ntpd fetch 23 ;; 24 esac 25 ;; 26esac 27 28exit $rc 29