Re: [OpenWrt-Devel] [UCI] uci import -m duplicates list options

2016-04-15 Thread Nemesis
On 04/15/2016 12:17 PM, Jo-Philipp Wich wrote: > Hi. > > Just truncate the destination file beforehand. I'll resort to lua scripting to handle this, thanks. Federico ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.o

Re: [OpenWrt-Devel] [UCI] uci import -m duplicates list options

2016-04-15 Thread Jo-Philipp Wich
Hi. Just truncate the destination file beforehand. ~ Jow ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] [UCI] uci import -m duplicates list options

2016-04-15 Thread Nemesis
On 04/13/2016 01:33 PM, Yousong Zhou wrote: > On 13 April 2016 at 18:54, Nemesis wrote: >> Hi, >> >> I've incurred in weird behaviour when using the import feature of the uci >> tool which seems to cause duplicates when importing configuration files that >> have "list" settings. >> >> To test this

Re: [OpenWrt-Devel] [UCI] uci import -m duplicates list options

2016-04-13 Thread Yousong Zhou
On 13 April 2016 at 18:54, Nemesis wrote: > Hi, > > I've incurred in weird behaviour when using the import feature of the uci > tool which seems to cause duplicates when importing configuration files that > have "list" settings. > > To test this you can try to create a file in /tmp/network: > > co

[OpenWrt-Devel] [UCI] uci import -m duplicates list options

2016-04-13 Thread Nemesis
Hi, I've incurred inweird behaviour when using the import feature of the uci toolwhich seems to cause duplicates whenimporting configuration files that have "list" settings. To test this you can try to create a file in /tmp/network: config interface 'lan' list ipaddr '192.168.99.1/24' and t