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