Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1489541
  • 博文数量: 129
  • 博客积分: 1449
  • 博客等级: 上尉
  • 技术积分: 3048
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-24 18:36
文章分类

全部博文(129)

文章存档

2015年(3)

2014年(20)

2013年(65)

2012年(41)

分类: 项目管理

2014-12-03 14:37:55

官方参考 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

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