fix a typo
[openwrt-10.03/.git] / package / base-files / files / etc / functions.sh
index cc7b70e51100ea8858b2d35b5ef7ca0cf7598d7a..5c353a3d010b81dc4c7a0319e4aa8d4c1b9cb7b0 100755 (executable)
@@ -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