在OpenWrt中保存数据到config

1、使用luci.model.uci来操作config文件。

2、使用cursor:set(config, section, option, value)进行设置

3、使用commit(config)来保存并更新config文件。

PS:使用save也能保存,但不会更新到config文件中。
posted @ 2012-03-19 11:48  AUOONG  阅读(1198)  评论(0编辑  收藏  举报