On 10/11/2012 8:35 AM, Felix Fietkau wrote:
> 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?
> 

Because we use it?  Seriously though, we find it useful for
our use of UCI and thought it didn't harm anything so why not
offer it if it could be useful to others.

Regards,

Daniel

-- 
Daniel Dickinson PowerCloud Systems, Palo Alto, CA Senior Firmware Engineer (In 
Canada: Senior Firmware Analyst)

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to