fix broken export from last commit
authorMike Baker <mbm@openwrt.org>
Wed, 22 Nov 2006 21:49:49 +0000 (21:49 +0000)
committerMike Baker <mbm@openwrt.org>
Wed, 22 Nov 2006 21:49:49 +0000 (21:49 +0000)
SVN-Revision: 5618

package/base-files/default/etc/functions.sh

index 1909ab2d47b49e6ebc936d8919dc46ceb411ff28..bf412df6d5eb3cfd8777606adae7217d505ae3d6 100755 (executable)
@@ -57,7 +57,7 @@ config_rename() {
        for oldvar in `set | grep ^CONFIG_${OLD}_ | \
                sed -e 's/\(.*\)=.*$/\1/'` ; do
                newvar="CONFIG_${NEW}_${oldvar##CONFIG_${OLD}_}"
-               export -n "$newvar=\${$oldvar}"
+               eval "export -n \"$newvar=\${$oldvar}\""
                unset "$oldvar"
        done