From charlesreid1

Line 36: Line 36:
Link: https://wiki.openwrt.org/doc/uci/system
Link: https://wiki.openwrt.org/doc/uci/system


(What happens when you change <code>/etc/config/file</code>? Does it stay persistent?
Q: What happens when you change <code>/etc/config/file</code>? Does it stay persistent?


When and how does UCI override changes with defaults?
Q: When and how does UCI override changes with defaults?


How can I link UCI with the 3 slider buttons?
Q: How can I link UCI with the 3 slider buttons?






{{WidyFlag}}
{{WidyFlag}}

Revision as of 04:12, 17 March 2016

Linkz:

https://wiki.openwrt.org/doc/uci

http://mattventura.net/openwrt-stuff/

Overview

On the Widy, or any device running OpenWrt, the device's configuration is set using UCI, the Unified Configuration Interface. This is similar in spirit to the way that most routers have web interfaces that allow you to modify their configuration options. You can interact with the UCI system using two different UCI interfaces: one is the web interface, LUCI, and the other is the command line interface uci.

In each case, changes to the UCI options are written to a group of files located in /etc/config. The list of files looks like this:

# ls -l /etc/config
-rw-r--r--    1 root     root           724 Mar 16 22:33 dhcp
-rw-r--r--    1 root     root            62 Oct  1  2014 dropbear
-rw-r--r--    1 root     root          2024 Mar  3 06:25 firewall
-rw-r--r--    1 root     root           151 Oct  1  2014 fstab
-rw-r--r--    1 root     root           624 Oct  1  2014 luci
-rw-r--r--    1 root     root           449 Mar 16 22:31 network
-rw-r--r--    1 root     root           677 Oct  1  2014 system
-rw-r--r--    1 root     root             0 Oct  1  2014 ubootenv
-rw-r--r--    1 root     root           717 Sep 20  2014 ucitrack
-rw-------    1 root     root           635 Oct  1  2014 uhttpd
-rw-r--r--    1 root     root           374 Mar  3 12:08 wireless

Each config file covers one major aspect of the Widy's operation.

Wireless Configuration

The wireless configuration file looks like this:

System Configuration

Link: https://wiki.openwrt.org/doc/uci/system

Q: What happens when you change /etc/config/file? Does it stay persistent?

Q: When and how does UCI override changes with defaults?

Q: How can I link UCI with the 3 slider buttons?