[luci] Luci CBI

Conor O'Gorman i at conorogorman.net
Wed Jan 16 15:48:10 CET 2013


On Wed, 2013-01-16 at 13:29 +0100, Marcos Lois Bermúdez wrote:

> As far i know, CBI will determine how the config files with config will 
> be generated, so it's posible to create some think to serialize / 
> deserialeze to other config file formats, and/or in other place 
> different from /etc/config?

There are three parts involved. 

The LuCI CBI models present a nice web interface for configuring some
feature.

The CBI models work with the UCI format configs in /etc/config. See the
OpenWrt wiki about UCI. 

The UCI format configs are then used by startup scripts usually calling
UCI shell commands. The shell commands give easy access to the standard
config format. The startup scripts are in /etc/init.d. They may
translate to a specific format suitable for the feature/daemon/program,
or they just call the program with a bunch of command line params.

Have a browse in /etc/init.d, and look at something simple, or similar
to what you want.

Conor





More information about the luci mailing list