aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/functions.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-03-24 13:43:04 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-03-24 13:43:04 +0000
commit7f0dd3fa4549cbc4f74407b5fe93a1604f6219b8 (patch)
treed62a8572d72b504fc8d267b4a45907192ed0eebc /package/base-files/files/etc/functions.sh
parentc76cdd578157cdf9a218c88614dd8c3beb2df576 (diff)
downloadupstream-7f0dd3fa4549cbc4f74407b5fe93a1604f6219b8.tar.gz
upstream-7f0dd3fa4549cbc4f74407b5fe93a1604f6219b8.tar.bz2
upstream-7f0dd3fa4549cbc4f74407b5fe93a1604f6219b8.zip
rename uci-update.awk to uci.awk and add a few config_* functions
SVN-Revision: 6666
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 4d84bb81e0..72e60bb511 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() {