I am developing a new application, a daemon for Openwrt. For addressing custom needs. I'd like to centralize its configuration file in UCI, and retrieve its configuration from UCI using the c library (libuci). Before that, I'm trying to amend the configuration to add its section. Let's say my application is called "foobar".
# uci add foobar connection uci: Entry not found # echo $? 3
Or if I type in:
# uci set foobar.connection.host=192.168.0.2 uci: Entry not found # echo $? 1
What am I missing here? How can I do that? Is it even possible to amend the UCI system to add new application?