參考大佬文章
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的內容
...