projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13ab5b8
)
allow packages to optionally append config file contents in the environment by settin...
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 30 Jul 2008 19:21:09 +0000
(19:21 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 30 Jul 2008 19:21:09 +0000
(19:21 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12020
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/uci/files/uci/lib/config/uci.sh
patch
|
blob
|
history
diff --git
a/package/uci/files/uci/lib/config/uci.sh
b/package/uci/files/uci/lib/config/uci.sh
index
cd8f6b1
..
c226f4f
100644
(file)
--- a/
package/uci/files/uci/lib/config/uci.sh
+++ b/
package/uci/files/uci/lib/config/uci.sh
@@
-23,9
+23,11
@@
uci_load() {
local RET
_C=0
- export ${NO_EXPORT:+-n} CONFIG_SECTIONS=
- export ${NO_EXPORT:+-n} CONFIG_NUM_SECTIONS=0
- export ${NO_EXPORT:+-n} CONFIG_SECTION=
+ if [ -z "$CONFIG_APPEND" ]; then
+ export ${NO_EXPORT:+-n} CONFIG_SECTIONS=
+ export ${NO_EXPORT:+-n} CONFIG_NUM_SECTIONS=0
+ export ${NO_EXPORT:+-n} CONFIG_SECTION=
+ fi
DATA="$(/sbin/uci ${LOAD_STATE:+-P /var/state} -S -n export "$PACKAGE" 2>/dev/null)"
RET="$?"