[luci] Luci CBI

Bryan Mayland bmayland at leoninedev.com
Wed Jan 16 19:48:45 CET 2013


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?

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.

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