Re: [LEDE-DEV] Stock config files as templates

2017-08-01 Thread Eric Luehrsen
. Easy and purely additive. - Eric > Original message > From: Philip Prindeville > Date: 7/25/17 12:29 (GMT-05:00) > To: LEDE Development List > Subject: [LEDE-DEV] Stock config files as templates > > I’m working on Issue #4588 (ntpd needs UCI

Re: [LEDE-DEV] Stock config files as templates

2017-07-26 Thread Michael Heimpold
Hi Philip, Am Dienstag, 25. Juli 2017, 10:29:06 CEST schrieb Philip Prindeville: > I’m working on Issue #4588 (ntpd needs UCI parsing comparable to sysntpd) > and I had a question… > > ntpd ships with the canned /etc/ntp.conf from the distro, but if we specify: > > > config timeserver ntp >

Re: [LEDE-DEV] Stock config files as templates

2017-07-25 Thread Magnus Kroken
Hi Philip On 25.07.2017 18:29, Philip Prindeville wrote: I’m guessing I’d need a sed script with a loop to gather all of the ‘server’ lines and replace them with one. Or am I missing something obvious? I think you are. Look at Dnsmasq and OpenVPN for two examples of UCI config integration.

[LEDE-DEV] Stock config files as templates

2017-07-25 Thread Philip Prindeville
I’m working on Issue #4588 (ntpd needs UCI parsing comparable to sysntpd) and I had a question… ntpd ships with the canned /etc/ntp.conf from the distro, but if we specify: config timeserver ntp list server ‘ntp.redfish-solutions.com’ then the /etc/ntp.conf file needs to be rewritten