aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/config
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2007-07-11 20:39:28 +0000
committerMike Baker <mbm@openwrt.org>2007-07-11 20:39:28 +0000
commit57da2d5713a625afe97498ee0668b9404d1ce313 (patch)
tree52d7e0c5d19bdc6e6a480813d445243f201d2f44 /package/base-files/files/lib/config
parentb1d970fd1d76068a27c8fd33b8df224c360a1c4c (diff)
downloadupstream-57da2d5713a625afe97498ee0668b9404d1ce313.tar.gz
upstream-57da2d5713a625afe97498ee0668b9404d1ce313.tar.bz2
upstream-57da2d5713a625afe97498ee0668b9404d1ce313.zip
move uci_load into config_load so that changes can be applied via uci without commiting
SVN-Revision: 7927
Diffstat (limited to 'package/base-files/files/lib/config')
-rw-r--r--package/base-files/files/lib/config/uci.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/package/base-files/files/lib/config/uci.sh b/package/base-files/files/lib/config/uci.sh
index a539388359..71f20488c9 100644
--- a/package/base-files/files/lib/config/uci.sh
+++ b/package/base-files/files/lib/config/uci.sh
@@ -19,13 +19,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
uci_load() {
- local PACKAGE="$1"
- config_load "$PACKAGE"
- local PACKAGE_BASE="$(basename "$PACKAGE")"
- [ -f "/tmp/.uci/${PACKAGE_BASE}" ] && {
- . "/tmp/.uci/${PACKAGE_BASE}" 2>/dev/null >/dev/null
- config_cb
- }
+ config_load "$1"
}
uci_apply_defaults() {(