参考大佬文章
https://www.cnblogs.com/tfanalysis/p/3972241.html
脚本的函数定义在openwrt1407/package/base-files/files/lib/functions中,有以下几个文件:
tf@ubuntu:~/projects/openwrt1407/package/base-files/files/lib/functions$ ls leds.sh network.sh preinit.sh service.sh system.sh uci-defaults.sh
其中uci-defaults.sh会生成默认的/etc/config下的文件,而其它文件是它的“库”。
我们看一看uci-default.sh的内容
...