1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

move uci_load into config_load so that changes can be applied via uci without commiting

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7927 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mbm
2007-07-11 20:39:28 +00:00
parent b549f7c5f4
commit d3ba75415e
2 changed files with 22 additions and 15 deletions

View File

@@ -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() {(