Ntpd config file support

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Tue Mar 18 14:32:41 UTC 2014


On Tue, 18 Mar 2014, Bryan Evenson wrote:
>
> How about a set of ntpd menuconfig options to build the command
> line?  We could configure the default ntpd settings at build time,
> it wouldn't add anything to the size of the final ntpd binary.

How about using a resource file the initscript would source:

---[ rc-file ]---
NTPD_OPT1='-f foo'
NTPD_OPT2='-b bar'
NTPD_OPT3=
-----------------

---[ initscript ]---
#!/bin/sh

. /path/to/rc-file
...
<command line to start> ntpd $NTPD_OPT1 $NTPD_OPT2 $NTPD_OPT3
...
--------------------


Cheers,

-- 
Cristian


More information about the busybox mailing list