aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2017-11-28 20:44:10 +0000
committerAlan Somers <asomers@FreeBSD.org>2017-11-28 20:44:10 +0000
commitcc58910608161ecdb69b70da30f3ac80958cda0b (patch)
treece13d6b93eea259a9c29eed12c9e2e77e87ecedd /etc/rc.d
parent55c6cacd56018de1a0b9f3004d73a29cf6983521 (diff)
downloadsrc-cc58910608161ecdb69b70da30f3ac80958cda0b.tar.gz
src-cc58910608161ecdb69b70da30f3ac80958cda0b.zip
Notes
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/ntpd6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.d/ntpd b/etc/rc.d/ntpd
index 6021f89b0c2d..051f857399c5 100755
--- a/etc/rc.d/ntpd
+++ b/etc/rc.d/ntpd
@@ -20,6 +20,8 @@ fetch_cmd="ntpd_fetch_leapfile"
needfetch_cmd="ntpd_needfetch_leapfile"
start_precmd="ntpd_precmd"
+ntp_tmp_leapfile="/var/run/ntpd.leap-seconds.list"
+
load_rc_config $name
ntpd_precmd()
@@ -92,7 +94,7 @@ ntpd_init_leapfile() {
}
ntpd_needfetch_leapfile() {
- local ntp_tmp_leapfile rc verbose
+ local rc verbose
if checkyesno ntp_leapfile_fetch_verbose; then
verbose=echo
@@ -100,8 +102,6 @@ ntpd_needfetch_leapfile() {
verbose=:
fi
- ntp_tmp_leapfile="/var/run/ntpd.leap-seconds.list"
-
ntp_ver_no_src=$(get_ntp_leapfile_ver $ntp_src_leapfile)
ntp_expiry_src=$(get_ntp_leapfile_expiry $ntp_src_leapfile)
ntp_ver_no_db=$(get_ntp_leapfile_ver $ntp_db_leapfile)