mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 23:39:41 +02:00
fix config_clear(), see #3054
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12036 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
43c33080b7
commit
3e5a9940c6
@ -44,6 +44,7 @@ list_remove() {
|
||||
val2="${val##* $remove }"
|
||||
[ "$val2" = "$val" ] && return
|
||||
val="${val1## } ${val2%% }"
|
||||
val="${val%% }"
|
||||
eval "export ${NO_EXPORT:+-n} -- \"$var=\$val\""
|
||||
}
|
||||
|
||||
@ -108,7 +109,7 @@ config_clear() {
|
||||
local SECTION="$1"
|
||||
local oldvar
|
||||
|
||||
export ${NO_EXPORT:+-n} CONFIG_SECTIONS="$(echo " $CONFIG_SECTIONS " | sed -e "s, $OLD , ,")"
|
||||
list_remove CONFIG_SECTIONS "$SECTION"
|
||||
export ${NO_EXPORT:+-n} CONFIG_SECTIONS="${SECTION:+$CONFIG_SECTIONS}"
|
||||
|
||||
for oldvar in `set | grep ^CONFIG_${SECTION:+${SECTION}_} | \
|
||||
|
Loading…
Reference in New Issue
Block a user