openwrt的默认/etc/config/network文件是如何生成的?

参考大佬文章

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的内容

 

...

posted @ 2020-04-23 10:13  XZHDJH  阅读(1022)  评论(0)    收藏  举报