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 | d8e5772f33d0d8a3290a002f57781e91580c2512 (patch) | |
tree | abca5a1b902d25b119c23635dd679ff07c0404e6 /package/base-files/files/etc | |
parent | 4c7b45255b5bd109e32744ffb369d055c327008a (diff) | |
download | upstream-d8e5772f33d0d8a3290a002f57781e91580c2512.tar.gz upstream-d8e5772f33d0d8a3290a002f57781e91580c2512.tar.bz2 upstream-d8e5772f33d0d8a3290a002f57781e91580c2512.zip |
rename uci-update.awk to uci.awk and add a few config_* functions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6666 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 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() { |