openwrt18.06 luci求助
openwrt吧
全部回复
仅看楼主
level 1
721hey 楼主
在openwrt18.06 开发luci界面,怎么样在点击保存应用后使配置生效;
local apply = luci.http.formvalue("cbi.apply")
if apply then
luci.sys.exec("/etc/init.d/test restart")
end
使用这个语句,是先执行了 luci.sys.exec("/etc/init.d/test restart"),才保存配置
2020年09月17日 02点09分 1
1