OpenWrt Forum Archive

Topic: How the luci is calling uci?

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I want to know how luci web interface is calling uci for set and get?
Does the luci use uci linux command? or it's calling uci via libuci C functions ?

(Last edited by kallel on 1 Dec 2014, 09:42)

Luci call the uci through this file, lua/luci/model/uci.lua, which is written in lua by the encapsulating uci with lua API of C. This is very convenient to use.

Hope it will help.

Wandy

So it's using the uci C functions and not the uci shell command

(Last edited by kallel on 1 Dec 2014, 11:18)

The discussion might have continued from here.