[luci] Luci CBI
Marcos Lois Bermúdez
marcos.discalis at gmail.com
Thu Jan 17 10:01:22 CET 2013
Hi,
El 16/01/2013 19:48, Bryan Mayland escribió:
> To clarify what I think you're asking, you'd like to use CBI to edit
> config items that aren't uci-based. Such as having a way to edit
> /etc/sysctl.conf using a CBI form?
This is exactly my goal.
>
> I believe it is possible. For example you can edit /etc/fstab using the
> cbi with the model found in /usr/lib/lua/luci/model/cbi/admin_system, or
> dropbear's authorized keys. I still think you'd need to write a lua
> reader/writer specific to your config file format though.
I'll focus on this, i need to get more confortable with luci code,
becouse there are already some parts that i don't understand very well.
>
> On 1/16/2013 1:25 PM, Marcos Lois Bermúdez wrote:
>> But will be posible to CBI to use other format for particular modules,
>> my goal is to parse / generate diferent formats per service, this will
>> for example allow me parse some service config files that are broken
>> in multiple files, and allow me to update this files manually, and
>> Luci will se the changes without need to exec another program to
>> translate between formats.
More information about the luci
mailing list