fix broken export from last commit
[openwrt.git] / package / base-files / default / etc / functions.sh
index 1909ab2..bf412df 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}_}"
        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
        
                unset "$oldvar"
        done
        
This page took 0.023095 seconds and 4 git commands to generate.