Chinaunix首页 | 论坛 | 博客
  • 博客访问: 220937
  • 博文数量: 73
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 407
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-18 20:28
文章分类
文章存档

2014年(73)

分类: 项目管理

2014-12-09 14:35:18

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

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