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文件。