rename uci-update.awk to uci.awk and add a few config_* functions
[openwrt.git] / package / base-files / files / etc / functions.sh
index 4d84bb8..72e60bb 100755 (executable)
@@ -120,7 +120,11 @@ config_set() {
        local section="$1"
        local option="$2"
        local value="$3"
-       export ${NO_EXPORT:+-n} "CONFIG_${section}_${option}=$value"
+       local old_section="$CONFIG_SECTION"
+
+       CONFIG_SECTION="$section"
+       option "$option" "$value"
+       CONFIG_SECTION="$old_section"
 }
 
 config_foreach() {
This page took 0.018917 seconds and 4 git commands to generate.