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