From charlesreid1

No edit summary
Line 1: Line 1:
Linkz:
https://wiki.openwrt.org/doc/uci
http://mattventura.net/openwrt-stuff/
=Overview=
=Overview=



Revision as of 00:33, 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: