Fix fetching ntp leapfile after 325256
Submitted by: Ronald Klop <ronald-lists@klop.ws> Reviewed by: asomers MFC after: 3 days X-MFC-With: 325256
This commit is contained in:
parent
55c6cacd56
commit
cc58910608
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user