Ntpd config file support

Xabier Oneca -- xOneca xoneca at gmail.com
Tue Mar 18 22:46:00 UTC 2014


Hello Laszlo,

2014-03-18 22:28 GMT+01:00 Laszlo Papp <lpapp at kde.org>:
>> If you want a configuration file
>> only for the time servers, this script will give you compatibility to the
>> ntp.org config file:
>> #!/bin/sh
>> NTPD_OPTIONS="..."
>> exec busybox ntpd $NTPD_OPTIONS $(sed -nre 's/^server *(.*)$/-p
>> \1/g'/etc/ntp.conf )
>
> I wonder if you are serious about this compared to the alternative way:
>
> /etc/busybox-ntpd/busybox-ntpd.conf
> foo=bar

I think you didn't see what Ralf did there. He is actually parsing an
(standard?) ntp.conf file and picking the 'server xxxx' lines to pass
as -p xxxx options to BB ntpd.

There. You don't have to "invent" another config file for ntpd. He
parsed the "original" format for Busybox to understand it!

Cheers,
Xabier Oneca_,,_


P.S. Please guys, calm down..!


More information about the busybox mailing list