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