summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/etc/functions.sh')
-rwxr-xr-xpackage/base-files/files/etc/functions.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/base-files/files/etc/functions.sh b/package/base-files/files/etc/functions.sh
index 4d84bb8..72e60bb 100755
--- a/package/base-files/files/etc/functions.sh
+++ b/package/base-files/files/etc/functions.sh
@@ -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() {