Hallo,
>>>>> update-leap is just a perl script that is part of ntp and appears
>>>>> to be work in progress. It is suppose to read the location of the
>>>>> leapsecond file from /etc/ntp.conf but it fails, that is why the
>>>>> -L flag is needed. It will work given the changes that I have made
>>>>> in the first and second posts.
>>>>
>>>> If you configure /etc/ntp.conf with:
>>>>
>>>> leapfile /var/cache/ntp/ntp.leapseconds
the perl script really looks like some "work in progress". The reason it
cannot find the leapfile mentioned in ntpd.conf is simply because it
uses a deficient regex to parse the configuration file.
I made 2 simple changes to the script:
48c48
< my $NTPCONF="/etc/ntpd.conf";
---
> my $NTPCONF="/etc/ntp.conf";
306c306
< if (/^\s*leapfile\s+"?(\S+)"?/) {
---
> if (/^ *leapfile\s+"(\S+)"/) {
The regex is looking for quotes - I made them optional in the regex.
Tschau...Thomas
--
Do you wanna be a legend or a passing footprint on the sands of time?
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page