UCI system for OPENWRT firmware

Source: Internet
Author: User

UCI Systems
The "UCI" is the abbreviation for "Unified configuration Interface" (Unified Interface) and is intended to centralize the configuration of the entire system openwrt.

The system configuration should be easy, more straightforward and documented here, making your life easier!

(It is the successor improvement of the White Russian series OpenWrt NVRAM-based configuration.) )

Many programs have their own configuration files somewhere in the system,

Like/etc/network/interfaces,/etc/exports,/etc/dnsmasq.conf or/etc/samba/samba.conf,

Sometimes they also use a slightly different syntax.

In OpenWrt you don't have to worry about this, we just need to change the UCI configuration file!

You don't need to restart the system for a change to work! See the command-line utilities later in this article to learn how to do this.

And don't forget that the official package (official binaries) contains a lot of background programs, but it is not enabled by default!

For example, the cron daemon is not activated by default, so editing only crontab is not useful.

You need to start it with/etc/init.d/crond or activate it with/etc/init.d/crond enable. Most background programs can be disable (disabled), stop (stop), and restart (restart). There are also some non-UCI configurations you can refer to.

Common principles

All OpenWrt configuration files are located in the/etc/config/directory. Each file is roughly related to the part of the system that it configures. You can edit/modify these configuration files by using a text editor, the UCI command-line utility, or various programming APIs such as Shell, Lua, and C.

Configuration file

File Location Description
Basic Configuration
/ETC/CONFIG/DHCP configuration of DNSMASQ and DHCP
/etc/config/dropbear SSH service-side options
/etc/config/firewall Central Firewall configuration
/etc/config/network switching, interface and routing configuration
/etc/config/system Miscellaneous and System configuration
/etc/config/timeserver rdate List of time servers
/etc/config/wireless Wireless settings and the definition of a wireless network
IPv6
/ETC/CONFIG/AHCPD ad-hoc Configuration Protocol (AHCP) server configuration and forwarder configuration
/ETC/CONFIG/AICCU AICCU Client Configuration
/ETC/CONFIG/DHCP6C Wide-dhcpv6 Client Configuration
/etc/config/dhcp6s Wide-dhcpv6 Server Configuration
/ETC/CONFIG/GW6C gw6c Client Configuration
/etc/config/radvd Routing Advertisement (RADVD) configuration
Other
/etc/config/etherwake Ethernet Wake-up: Etherwake
/etc/config/fstab mount point and swap
/etc/config/hd-idle Another optional hard disk idle hibernation process (requires a router to support USB drives)
/ETC/CONFIG/HTTPD Web server configuration option (Busybox comes with httpd, has been discarded)
/etc/config/luci Basic Luci Configuration
/etc/config/luci_statistics Package Statistics Configuration
/ETC/CONFIG/MINI_SNMPD MINI_SNMPD Configuration
/ETC/CONFIG/MOUNTD OpenWrt Automatic mount process (similar to autofs)
/etc/config/multiwan Simple multi-wan egress configuration
/etc/config/ntpclient NTP Client configuration to get the correct time
/ETC/CONFIG/PURE-FTPD PURE-FTPD Server Configuration
/etc/config/qos QoS configuration (traffic throttling and shaping)
/etc/config/samba Samba configuration (Microsoft File share)
/ETC/CONFIG/SNMPD snmpd (SNMP service process) configuration
/etc/config/sshtunnel Sshtunnel Configuration
/etc/config/stund STUN Server Configuration
/etc/config/transmission BitTorrent Configuration
/ETC/CONFIG/UHTTPD Web server configuration (UHTTPD)
/ETC/CONFIG/UPNPD MINIUPNPD UPnP Server Configuration
/etc/config/ushare ushare UPnP Server Configuration
/etc/config/vblade Vblade User space AoE (ATA over Ethernet) configuration
/etc/config/vnstat Vnstat Downloader Configuration
/etc/config/wifitoogle Use the button to switch WiFi scripts
/etc/config/wol Wake-on-lan:wol
/ETC/CONFIG/ZNC ZNC Configuration

This article by http://www.wifidog.pro/2015/07/23/openwrt-uci.html compilation, reprint please indicate the source

UCI system for OPENWRT firmware

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.