mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[backfire] merge r22629
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@24003 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -97,6 +97,7 @@ list() {
|
||||
local len
|
||||
|
||||
config_get len "$CONFIG_SECTION" "${varname}_LENGTH" 0
|
||||
[ $len = 0 ] && append CONFIG_LIST_STATE "${CONFIG_SECTION}_${varname}"
|
||||
len=$(($len + 1))
|
||||
config_set "$CONFIG_SECTION" "${varname}_ITEM$len" "$value"
|
||||
config_set "$CONFIG_SECTION" "${varname}_LENGTH" "$len"
|
||||
|
||||
Reference in New Issue
Block a user