Differences
This shows you the differences between two versions of the page.
|
doc:uci [2013/01/15 14:35] steven |
doc:uci [2013/02/01 19:39] (current) slickkitten better link to notUCI |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== The UCI System ====== | ====== The UCI System ====== | ||
| - | The abbreviation //UCI// stands for //**__U__**nified **__C__**onfiguration **__I__**nterface// and is intended to centralize the configuration of OpenWrt. | + | The abbreviation [[doc:techref:uci|UCI]] stands for //**__U__**nified **__C__**onfiguration **__I__**nterface// and is intended to centralize the configuration of OpenWrt. |
| - | Configuration should be easy, straight forward and documented here, making life easier! (UCI is the successor to the nvram-based configuration found in the White Russian series of OpenWrt.) | + | Configuration should be easy, straightforward and documented here, making life easier! UCI is the successor to the NVRAM-based configuration found in the White Russian series of OpenWrt. |
| - | Many programs have their own config files lying around somewhere, like ''/etc/network/interfaces'' or ''/etc/exports'' or ''/etc/dnsmasq.conf'' ''/etc/samba/samba.conf'' and they often use different syntax. With OpenWrt you don't have to bother with any of them and only need to change the UCI configuration files! | + | Many programs have their own configuration files lying around somewhere, like ''/etc/network/interfaces'', ''/etc/exports'', ''/etc/dnsmasq.conf'' or ''/etc/samba/samba.conf'' and they often use different syntaxes. With OpenWrt you don't have to bother with any of them and only need to change the UCI configuration files. |
| - | You no longer have to reboot your system to make configuration changes! You can use the [[doc:uci#command.line.utility|UCI command line utility]] instead. And please do not forget that quite some daemons are included in the official binaries, but they are not enabled by default! For example the cron daemon is not activated by default, thus only editing the crontab won't do anything. You have to either start the daemon with ''/etc/init.d/cron start'' or enable it with ''/etc/init.d/cron enable''. You can ''disable'', ''stop'' and ''restart'' most of those daemons, too. There are some [[doc:howto:notuci.config]] you may want to tend to. | + | You no longer have to reboot your system to make configuration changes. You can use the [[doc:uci#command.line.utility|UCI command line utility]] instead. And please do not forget that quite some daemons are included in the official binaries, but they are not enabled by default! For example the ''cron'' daemon is not activated by default, thus only editing the ''crontab'' won't do anything. You have to either start the daemon with ''/etc/init.d/cron start'' or enable it with ''/etc/init.d/cron enable''. You can ''disable'', ''stop'' and ''restart'' most of those daemons, too. There are some [[doc:howto:notuci.config|not UCI configuration files]] you may want to tend to. |
| ===== Common Principles ===== | ===== Common Principles ===== | ||
| Line 202: | Line 202: | ||
| 80 | 80 | ||
| root@OpenWrt:~#'' | | root@OpenWrt:~#'' | | ||
| + | |||
| + | === append an entry to a list === | ||
| + | |||
| + | | ''uci add_list system.ntp.server='0.de.pool.ntp.org''' | | ||
| + | |||
| + | === replace a list completely === | ||
| + | |||
| + | | ''uci delete system.ntp.server | ||
| + | uci add_list system.ntp.server='0.de.pool.ntp.org' | ||
| + | uci add_list system.ntp.server='1.de.pool.ntp.org' | ||
| + | uci add_list system.ntp.server='2.de.pool.ntp.org' | ||
| + | '' | | ||
| === UCI paths === | === UCI paths === | ||
doc/uci.1358256934.txt.bz2 · Last modified: 2013/01/15 14:35 by steven
