Chinaunix首页 | 论坛 | 博客
  • 博客访问: 97016
  • 博文数量: 14
  • 博客积分: 15
  • 博客等级: 民兵
  • 技术积分: 29
  • 用 户 组: 普通用户
  • 注册时间: 2011-07-18 12:54
文章分类

全部博文(14)

文章存档

2016年(11)

2015年(2)

2013年(1)

我的朋友

分类: 项目管理

2016-08-09 17:15:40

官方参考 http://wiki.openwrt.org/doc/devel/config-scripting

Loading

To be able to load UCI configuration files, you need to include the common functions with:

. /lib/functions.sh

Then you can use config_load name to load config files.

The function first checks for name as absolute filename and falls back to loading it from /etc/config/ (which is the most common way of using it).


2. /lib/functions.sh: 常用函数集锦, 用法如下

config_load 配置文件名
config_foreach 遍历函数名 Section类型

config_get

阅读(3521) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~