aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/periodic/etc/daily/480.leapfile-ntpd
blob: c7de845ea87d5ad6379a8077e9cc284ab5b61b70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
#

# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/periodic.conf ]
then
    . /etc/defaults/periodic.conf
    source_periodic_confs
fi

case "$daily_ntpd_leapfile_enable" in
    [Yy][Ee][Ss])
	if service ntpd enabled && service ntpd needfetch; then
	    anticongestion
	    service ntpd fetch
	fi
	;;
esac

exit $rc