mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 03:01:55 +02:00
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
This commit is contained in:
parent
61bccd5e21
commit
a88219f1f2
@ -23,9 +23,11 @@ uci_load() {
|
|||||||
local RET
|
local RET
|
||||||
|
|
||||||
_C=0
|
_C=0
|
||||||
export ${NO_EXPORT:+-n} CONFIG_SECTIONS=
|
if [ -z "$CONFIG_APPEND" ]; then
|
||||||
export ${NO_EXPORT:+-n} CONFIG_NUM_SECTIONS=0
|
export ${NO_EXPORT:+-n} CONFIG_SECTIONS=
|
||||||
export ${NO_EXPORT:+-n} CONFIG_SECTION=
|
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)"
|
DATA="$(/sbin/uci ${LOAD_STATE:+-P /var/state} -S -n export "$PACKAGE" 2>/dev/null)"
|
||||||
RET="$?"
|
RET="$?"
|
||||||
|
Loading…
Reference in New Issue
Block a user