mirror of https://github.com/hak5/openwrt.git
allow packages to optionally append config file contents in the environment by setting a flag and calling config_load multiple times
SVN-Revision: 12020lede-17.01
parent
c5ecc1790a
commit
4cb7df23e9
|
@ -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