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