Chinaunix首页 | 论坛 | 博客
  • 博客访问: 151025
  • 博文数量: 55
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 17
  • 用 户 组: 普通用户
  • 注册时间: 2014-09-19 09:09
文章分类

全部博文(55)

文章存档

2015年(17)

2014年(38)

我的朋友

分类: 项目管理

2014-12-17 20:34:05

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

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