1、使用luci.model.uci来操作config文件。
2、使用cursor:set(config, section, option, value)进行设置
3、使用commit(config)来保存并更新config文件。
PS:使用save也能保存,但
不会更新到config文件中。
1、使用luci.model.uci来操作config文件。
2、使用cursor:set(config, section, option, value)进行设置
3、使用commit(config)来保存并更新config文件。
转载于:https://www.cnblogs.com/AUOONG/archive/2012/03/19/2405856.html