Jo-Philipp Wich
65d6e285f1
[package] base-files, uci: properly revert list state on config_load
...
This fixes a bug where lists end up with duplicate values if config_load was
invoked multiple times.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22629 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-14 00:45:15 +00:00
Jo-Philipp Wich
11096c0963
[package] uci: add uci_get() and uci_get_state() wrappers to shell api ( #7312 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21489 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-17 19:31:05 +00:00
Felix Fietkau
b940bc10ab
uci: allow shell scripts to override the config dir (patch by cshore)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19351 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-27 04:59:14 +00:00
Felix Fietkau
90bf1295c1
fix uci_set_state for empty values
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12345 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-20 12:34:17 +00:00
Felix Fietkau
62381bde91
initialize the CONFIG_APPEND variable
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12050 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-31 21:11:15 +00:00
Felix Fietkau
d34d4895c3
clean up the directory layout of the uci shell api
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12022 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-30 19:25:36 +00:00
Felix Fietkau
d5df5453a5
nuke uci-sh, it is obsolete and no longer works
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12021 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-30 19:25:08 +00:00
Felix Fietkau
0536f2b124
allow packages to optionally append config file contents in the environment by setting a flag and calling config_load multiple times
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12020 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-30 19:21:09 +00:00
Felix Fietkau
ac4f6d474d
commit after running uci_set_default
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10434 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-09 18:14:01 +00:00
Felix Fietkau
11d0604b5e
don't fail on uci_load() with nonexisting config files, but return the right return code
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10433 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-09 18:08:05 +00:00
Felix Fietkau
0c54a6353f
make uci_add() create anonymous sections if requested and store the new section name in a variable
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10432 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-09 17:27:43 +00:00
Felix Fietkau
6a548e3b41
fix a stupid copy&paste mistake
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10399 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-05 20:22:47 +00:00
Felix Fietkau
8f88b18a3e
fix wrong path to uci (thx, phr3ak)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10387 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-05 00:52:48 +00:00
Felix Fietkau
2f8b5f8c28
Here comes the new UCI. Enjoy :)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10367 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-03 06:48:15 +00:00