X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/f8c80695b93aa9400b53465174665dbaeb01b5d4..a5f42890e449d5c40e29de2648693667377f48c9:/package/base-files/files/etc/functions.sh diff --git a/package/base-files/files/etc/functions.sh b/package/base-files/files/etc/functions.sh index cc7b70e51..5c353a3d0 100755 --- a/package/base-files/files/etc/functions.sh +++ b/package/base-files/files/etc/functions.sh @@ -77,7 +77,7 @@ config_clear() { CONFIG_SECTIONS="$(echo " $CONFIG_SECTIONS " | sed -e "s, $OLD , ,")" CONFIG_SECTIONS="${SECTION:+$CONFIG_SECTIONS}" - for oldvar in `set | grep ^CONFIG_${SECTION:+$SECTION_} | \ + for oldvar in `set | grep ^CONFIG_${SECTION:+${SECTION}_} | \ sed -e 's/\(.*\)=.*$/\1/'` ; do unset $oldvar done