Hello Laszlo,

2014-03-18 22:28 GMT+01:00 Laszlo Papp <lp...@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..!
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to