Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想更改我的 ipaddr 以使用 uci 命令。这是我的代码。
v = "111.111.111.11" local ipaddr = io.popen("uci set network.lan.ipaddr='%s'", v) ipaddr:close()
我知道代码一定有错误。但是,我想将 ip 地址更改为 v 值。有什么解决办法吗?
尝试
io.popen(string.format("uci set network.lan.ipaddr='%s'", v))