diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-03-24 13:43:04 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-03-24 13:43:04 +0000 |
commit | 7f0dd3fa4549cbc4f74407b5fe93a1604f6219b8 (patch) | |
tree | d62a8572d72b504fc8d267b4a45907192ed0eebc /package/base-files/files/etc | |
parent | c76cdd578157cdf9a218c88614dd8c3beb2df576 (diff) | |
download | mtk-20170518-7f0dd3fa4549cbc4f74407b5fe93a1604f6219b8.zip mtk-20170518-7f0dd3fa4549cbc4f74407b5fe93a1604f6219b8.tar.gz mtk-20170518-7f0dd3fa4549cbc4f74407b5fe93a1604f6219b8.tar.bz2 |
rename uci-update.awk to uci.awk and add a few config_* functions
SVN-Revision: 6666
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-x | package/base-files/files/etc/functions.sh | 6 |
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() { |