]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/periodic/etc/daily/480.leapfile-ntpd
periodic/daily/480.leapfile-ntpd: only attempt to refresh leap-seconds.list
[FreeBSD/FreeBSD.git] / usr.sbin / periodic / etc / daily / 480.leapfile-ntpd
1 #!/bin/sh
2 #
3 #
4
5 # If there is a global system configuration file, suck it in.
6 #
7 if [ -r /etc/defaults/periodic.conf ]
8 then
9     . /etc/defaults/periodic.conf
10     source_periodic_confs
11 fi
12
13 case "$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         ;;
20 esac
21
22 exit $rc