Changeset 12020


Ignore:
Timestamp:
2008-07-30T21:21:09+02:00 (8 years ago)
Author:
nbd
Message:

allow packages to optionally append config file contents in the environment by setting a flag and calling config_load multiple times

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/uci/files/uci/lib/config/uci.sh

    r10434 r12020  
    2424 
    2525        _C=0 
    26         export ${NO_EXPORT:+-n} CONFIG_SECTIONS= 
    27         export ${NO_EXPORT:+-n} CONFIG_NUM_SECTIONS=0 
    28         export ${NO_EXPORT:+-n} CONFIG_SECTION= 
     26        if [ -z "$CONFIG_APPEND" ]; then 
     27                export ${NO_EXPORT:+-n} CONFIG_SECTIONS= 
     28                export ${NO_EXPORT:+-n} CONFIG_NUM_SECTIONS=0 
     29                export ${NO_EXPORT:+-n} CONFIG_SECTION= 
     30        fi 
    2931 
    3032        DATA="$(/sbin/uci ${LOAD_STATE:+-P /var/state} -S -n export "$PACKAGE" 2>/dev/null)" 
Note: See TracChangeset for help on using the changeset viewer.