xref: /freebsd/usr.sbin/periodic/etc/daily/480.leapfile-ntpd (revision 18054d0220cfc8df9c9568c437bd6fbb59d53c3c)
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