xref: /freebsd/usr.sbin/periodic/etc/daily/480.leapfile-ntpd (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
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 enabled && service ntpd needfetch; then
16	    anticongestion
17	    service ntpd fetch
18	fi
19	;;
20esac
21
22exit $rc
23