On 2012-11-09 11:10 PM, Daniel Dickinson wrote:
> ---
>  package/uci/files/lib/config/uci.sh |    5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/package/uci/files/lib/config/uci.sh 
> b/package/uci/files/lib/config/uci.sh
> index db84c83..0002917 100644
> --- a/package/uci/files/lib/config/uci.sh
> +++ b/package/uci/files/lib/config/uci.sh
> @@ -36,8 +36,9 @@ uci_load() {
>               export ${NO_EXPORT:+-n} CONFIG_NUM_SECTIONS=0
>               export ${NO_EXPORT:+-n} CONFIG_SECTION=
>       fi
> -
> -     DATA="$(/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} 
> ${LOAD_STATE:+-P /var/state} -S -n export "$PACKAGE" 2>/dev/null)"
> + 
> +     LOAD_STATE_DIR="${LOAD_STATE_DIR:-/var/state}"
> +     DATA="$(/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} 
> ${LOAD_STATE:+-P $LOAD_STATE_DIR} -S -n export "$PACKAGE" 2>/dev/null)"
>       RET="$?"
>       [ "$RET" != 0 -o -z "$DATA" ] || eval "$DATA"
>       unset DATA
Why?

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to