xref: /freebsd/usr.sbin/periodic/etc/daily/480.leapfile-ntpd (revision 22cf89c938886d14f5796fc49f9f020c23ea8eaf)
1#!/bin/sh
2#
3#
4
5# If there is a global system configuration file, suck it in.
6#
7if [ -r /etc/defaults/periodic.conf ]
8then
9    . /etc/defaults/periodic.conf
10    source_periodic_confs
11fi
12
13case "$daily_ntpd_leapfile_enable" in
14    [Yy][Ee][Ss])
15	if service ntpd oneneedfetch; then
16	    anticongestion
17	    service ntpd onefetch
18	fi
19	;;
20esac
21
22exit $rc
23