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

2017-08-01 Thread Eric Luehrsen
I would recommend two options and break this into two steps or concepts. (1) A new option removes default servers. This option is independent of option 2. For implementation, an inline awk script might have more robust syntax then sed. (2) Current list server option adds servers to the list. E

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.