Hi, On 13 March 2014 16:11, Wandy Lau <xdragon...@gmail.com> wrote: > These files are parsed by shell scripts or some thing else? I really can't > figure it out. Please give me some idea about this. >
UCI is really a pearl in OpenWrt. I was surprised by the design and implementation when trying to understand the details. Basically, identifiers like "config", "option" are defined as shell functions, so uci config files can be evaled by the shell when they are parsed, kind of self interpretation. IIRC, you can find the details in /lib/functions.sh, /lib/config/uci.sh. There are a lot of eval statements there, so be warned. :) yousong _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel