fix a typo
authorFelix Fietkau <nbd@openwrt.org>
Mon, 29 Jan 2007 22:07:17 +0000 (22:07 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 29 Jan 2007 22:07:17 +0000 (22:07 +0000)
SVN-Revision: 6228

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