Changeset 4088


Ignore:
Timestamp:
2006-06-27T00:44:53+02:00 (12 years ago)
Author:
nbd
Message:

don't rely on temporary variables in config() as they may get overwritten by config_cb()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/buildroot-ng/openwrt/package/base-files/default/etc/functions.sh

    r4071 r4088  
    3737 
    3838config () { 
    39         local type="$1" 
    40         local name="$2" 
    4139        _C=$(($_C + 1)) 
    4240        name="${name:-cfg${_C}}" 
    43         config_cb "$type" "$name" 
    44         export CONFIG_SECTION="$name" 
    45         export CONFIG_${CONFIG_SECTION}_TYPE="$type" 
     41        config_cb "$1" "$2" 
     42        export CONFIG_SECTION="$2" 
     43        export CONFIG_${CONFIG_SECTION}_TYPE="$1" 
    4644} 
    4745 
Note: See TracChangeset for help on using the changeset viewer.