在OpenWrt中保存数据到config

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

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

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

PS:使用save也能保存,但不会更新到config文件中。
原文地址:https://www.cnblogs.com/AUOONG/p/2405856.html