diff --git a/etc/rc.d/ntpd b/etc/rc.d/ntpd index 6021f89b0c2..051f857399c 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)