xref: /freebsd/usr.sbin/periodic/etc/daily/480.leapfile-ntpd (revision 3611ec604864a7d4dcc9a3ea898c80eb35eef8a0)
1#!/bin/sh
2#
3# $FreeBSD$
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	if service ntpd oneneedfetch; then
17	    anticongestion
18	    service ntpd onefetch
19	fi
20	;;
21esac
22
23exit $rc
24